I have a combobox with defined jsonstore. The jsonstore loads fine - I've checked it in "load" event of jsonstore. The problem is that combobox doesn't update the items itself, and I also can't find any methods to do that manually. The displayField and valueField values are correct. Am I missing something? Or what can be the reason of items not being loaded?
Code:
{ xtype: 'combo',
store: {
autoDestroy: true,
autoLoad: true,
xtype: 'jsonstore',
url: "http://someurl"
totalProperty: 'count',
root: 'result',
fields: ["ID", "Name"],
remoteSort: true,
sortInfo: {
field: 'Name',
direction: 'ASC'
}
},
displayField: "Name",
valueField: "ID",
forceSelection: true
}