Hi, I have a problem with combobox.
The code is
PHP Code:
var mainSS = new Ext.data.JsonStore({
proxy: new Ext.data.HttpProxy({url: '<?= HTTP_SERVER;?>json/settings/allSuplList.php' }),
reader: new Ext.data.JsonReader({
id: 'allCntrList',
totalProperty: 'total',
root:'students'
}, [{name: 'name'}, {name: 'id'}])
});
var mainS = new Ext.form.ComboBox({
store: mainSS,
hiddenId: 'id',
hiddenName: 'suplId',
tpl: '<tpl for=\".\"><div ext:qtip=\"{name}\" class=\"x-combo-list-item\">{name}</div></tpl>',
displayField:'name',
valueField: 'id',
fieldLabel: 'Students',
emptyText:'Select...',
loadingText: 'Loading...',
maxHeight: 100,
allowBlank: false,
editable:false,
anchor:'100%',
triggerAction: 'all',
lazyRender:true,
forceSelect: true,
listClass: 'x-combo-list-small'
});
I definitely know that the store is getting the data.
PHP Code:
{students: [
{ name:'Ivan J', id:'17'},
{ name:'Anna H', id:'6'},
{ name:'Nick F', id:'4'}
]}
With the previous EXT version everything was ok but since ext-3.0-rc2 I had a few things I really do not understand.
Please, help to solve this one.
Nick