This is my store.
var studentStore = new Ext.data.SimpleStore ({
fields :['value','name'],
data :studentArray
})
This is my ext js combobox.
ddlStudentCombo = new Ext.form.ComboBox({
id:'ddlDocCat',
emptyText:'Type..',
hideTrigger:true,
width:140,
store: studentStore,
applyTo:'ddlStudent',
displayField :'name',
forceSelection:true,
selectOnFocus: true,
listWidth:320,
mode: 'local',
listClass: 'x-combo-list-small',
typeAhead:true
});
I tried adding listeners, doQuery ,method overriding. But these are not working.
I think you should set autoLoad : true for the store.
var studentStore = new Ext.data.SimpleStore ({ fields :['value','name'], data :studentArray, autoLoad : true })