PDA

View Full Version : combobox update



dima32
3 Dec 2009, 2:27 AM
2 combobox in my form
I load data using method



public void onSuccess(Collection<TypedDto> positions) {
BeanModelFactory factory=BeanModelLookup.get().getFactory(domainClass);
ListStore<BeanModel> store = new ListStore<BeanModel>();
for(TypedDto pos:positions){
store.add(factory.createModel(pos));
}
combo.setStore(store);
} I use same method to update store of combbox.
but this method update only first combobox. second combobox without changes.

How to update second combobox ?
extGWT 2.0.1

dima32
4 Dec 2009, 8:25 AM
I find solution

ComboBox.setStore(ListStore<D> store);
ComboBox.getListView().setStore(ListStore<D> store);

( http://www.extjs.com/forum/showthread.php?t=38571 )

I think that this is bug..