View Full Version : Refresh combobox data when mode:'local'

7 Oct 2009, 8:54 AM
I have 2 comboboxes on a page, using 2 datastores both filled with local data. On selecting a value in combo1, I'd like to update the contents of combo2. I can successfully re-populate combo2's store, but as combo2 is rendered it does not actually list the new items, but the old ones instead.

If I was using a mode:'remote' then changing the datastore of the combo through .load or .reload would repopulate the combo, but how can I force the combo items to refresh when using a local store?


7 Oct 2009, 10:29 AM
In the past, I've used the loadData() function. Basically call store.loadData([..records..])