View Full Version : How to load combobox values available in a JsonStore

16 Jan 2012, 6:59 AM
I need to load values present in a particular field in a JsonStore into my combobox. Is this possible? I am aware of the method where we specify URL and field in a JsonStore and use the store in a combobox (like code below). This is not helpful in my case. I need to load values which already available in a store.
var storeForCombo = new Ext.data.JsonStore({ autoLoad : true, url: urlPath, baseParams: {action: 'comboAction'}, fields : [{name: 'field1'}] }); var combo = new Ext.form.ComboBox({ store: storeForCombo, .... .... }); Thanks for any help!

16 Jan 2012, 8:55 AM
Have you tried to add records to the store?