Hi,
i have a GridEditorPanel with a ComboBox Editor and my mode:remote. But after the selection of a value of the ComoBox and submit my recordform, i got the valueField instead of displayField.
How to i render the displayField but still have access to the valueField to pass this to my backend?
here is my code
Code:
this.LookupRecord = Ext.data.Record.create([
{name: 'devicecategory_id'},
{name: 'devicecategory_name'}
]);
//Store for combo box of category
this.categorycombo = new Ext.data.Store({
proxy: new Ext.data.HttpProxy({url: this.url})
,baseParams:{mode:'combo', objName:"devicecategory"}
,reader: new Ext.data.JsonReader({
id:'devicecategory_id',
root:'rows',
totalProperty:'totalCount'
},[{
name: 'devicecategory_id',
mapping: 'devicecategory_id'
}, {
name: 'devicecategory_name',
mapping: 'devicecategory_name'
}]),
autoLoad: true,this.LookupRecord)
});
So please help me for this.
Thanks in advance
Snehat