I am using GXT 2.2.1 and GWT 2.0.4in my project and I want to disable the "Add all" button in DualListField. Please help
I don't find an API to disable the 'Add all'. You can extend the DualListField and disable the allRight button.
public class CustomDualListField<D extends ModelData> extends DualListField<D> {
@Override
protected void onRender(Element target, int index) {
super.onRender(target, index);
allRight.disable();
//buttonBar.remove(allRight);
//buttonBar.remove(allLeft);
}
}
Here I see that even though the button is disabled, it does not look like disabled. You can consider removing it completely.
I have tried this in GXT 2.2.5 and GWT 2.4. Just check it if it works fine with GXT 2.2.1