View Full Version : Combobox with local store reload problem

8 Oct 2009, 5:54 AM
I know that is a very stupid question, but I can not solve this problem.

I have combo box with local store

ProductsConfig.ProductsFilterData.GCLands = [{id: 1, Name: 'asd}];

var GCLands = new Ext.form.ComboBox({
name: 'GCLands',
hiddenName: 'GCLands',
emptyText: 'All GC Lands',
typeAhead: true,
//mode: 'local',
displayField: 'Name',
//editable: false,
valueField: 'id'
//triggerAction: 'all',
store: new Ext.data.Store({
proxy: new Ext.data.MemoryProxy(ProductsConfig.ProductsFilterData),
reader: new Ext.data.JsonReader(
{root: 'GCLands'},
name: 'id'
}, {
name: 'Name'


After some manipulations ProductsConfig.ProductsFilterData.GCLands = [{id: 1, Name: 'asd'}, {id: 2, Name: 'asd'}];

So the question is how can I reload the store.

GCLands.store.reload(); does not help.

Could anyone give me a hint, I think someone before had such problem but I could not find anything on forum.