-
28 Jan 2013 3:54 PM #1
Answered: How do I dynamically add data to a store?
Answered: How do I dynamically add data to a store?
If I have a Ext.Ajax.request() call to get some data (instead of a proxy). How do I add it to a store?
I thought I could do this:
But it doesn't work.Code:store = Ext.getCmp('complist').getStore(); store.add({ id: '1', name: 'something', game_type: '1', is_private: '0' }); store.sync();What comes around goes around
-
Best Answer Posted by Diego Garcia
store.add(modelConfig/modelsConfig) should works. Is your store bounded to a certain model type??
Try store.setData(config);
-
28 Jan 2013 5:04 PM #2
store.add(modelConfig/modelsConfig) should works. Is your store bounded to a certain model type??
Try store.setData(config);


Reply With Quote