PDA

View Full Version : How to select values in the DualListField?



vinicius.rabelo
19 Jun 2010, 10:40 AM
What is the correct mode to pass some values to "toField"?
I tryed to do:




getCategoryDualList().getToList().getListView().getSelectionModel().select(list, false);

But didn't work...



If I do by this mode work, but I will have to remove of from list manual?:


getCategoryDualList().getToList().getStore().add(list);


Thanks,

Vinícius

daddieke
20 Jun 2010, 6:48 AM
Where I need to programmatically set values in a DualListField, I also use your second statement and indeed remove the item programmatically from the other list.



dualList.getToList().getStore().add(model);
dualList.getFromList().getStore().remove(model);

vinicius.rabelo
30 Jun 2010, 4:06 PM
Thanks