dancaescu
11 Jan 2012, 6:37 PM
Hi,
I have the code listed below. For some reason, i am getting an empty combo box (no values), with blank lines (I have seven results in the db, and i get seven results as blank lines. Where is the mistake?
},{
header:'Brand',
dataIndex:'brand',
width:40,
sortable:true,
align:'right',
editor: new Ext.form.ComboBox({
id: 'brand',
displayField: 'name',
valueField: 'id',
typeAhead: true,
forceSelection: true,
mode: 'remote',
editable: true,
triggerAction: 'all',
allowBlank: false,
emptyText: 'Select brand',
store: new Ext.data.Store({
id:0,
proxy:new Ext.data.HttpProxy({url:'brands/index.php',method:'GET'}),
reader:new Ext.data.JsonReader({
root:'brands',
method:'GET',
id:'id',
fields:[
{name:'id', type:'int'},
{name:'value',type:'string'}
]
})
})
})
},{
I have the code listed below. For some reason, i am getting an empty combo box (no values), with blank lines (I have seven results in the db, and i get seven results as blank lines. Where is the mistake?
},{
header:'Brand',
dataIndex:'brand',
width:40,
sortable:true,
align:'right',
editor: new Ext.form.ComboBox({
id: 'brand',
displayField: 'name',
valueField: 'id',
typeAhead: true,
forceSelection: true,
mode: 'remote',
editable: true,
triggerAction: 'all',
allowBlank: false,
emptyText: 'Select brand',
store: new Ext.data.Store({
id:0,
proxy:new Ext.data.HttpProxy({url:'brands/index.php',method:'GET'}),
reader:new Ext.data.JsonReader({
root:'brands',
method:'GET',
id:'id',
fields:[
{name:'id', type:'int'},
{name:'value',type:'string'}
]
})
})
})
},{