PDA

View Full Version : [SOLVED] Reloading combo/store 'on-the-fly'



JeffBurr
31 Aug 2007, 7:00 AM
I have searched for the answer, so I apologize if it is "out there" and I missed it...

I have a dialog that has a combobox with a list populated from a store that access the db. I also have a button on this dialog that pops another dialog that allows you to add some data. This new data now needs to be available in the original combobox.

Is there any way to refresh a combobox/store "on demand" and then have that new list immediately available?

evant
31 Aug 2007, 7:12 AM
Can't you just call reload?

http://extjs.com/deploy/ext/docs/output/Ext.data.Store.html#reload

JeffBurr
31 Aug 2007, 7:57 AM
Yes, thank you. I was calling load() to refresh and it didn't work, but reload() does.