Hi,
I'm having the same problem here.
->Column display is ok, because of renderer.
->displayTpl of combobox is set and working
Adapting my renderer didn't work. Still shows [Object object]. Here is my code:
Code:
{
header: 'company'
dataIndex: 'company',
renderer: function (value, metaData) {
return 'test';
if(Ext.isDefined(value)){
console.log(value.name);
return value.name;
}
return '';
},
flex: 1,
autoSizeColumn: true,
filter: {
type: 'list'
},
editor: {
xtype: 'combobox',
queryMode: 'local',
bind: {
store: '{companies}'
},
displayField: 'name',
valueField: 'id',
tpl: Ext.create('Ext.XTemplate',
'<tpl for=".">',
'<tpl if="active == false">',
'<div class="x-boundlist-item x-combo-grayed-out-item">{name}</div>',
'</tpl>',
'<tpl if="active == true">',
'<div class="x-boundlist-item">{name}</div>',
'</tpl>',
'</tpl>'
),
displayTpl: Ext.create('Ext.XTemplate',
'<tpl for=".">',
'{name}',
'</tpl>'
),
listeners: {
beforeselect: function (combo, record, index) {
return (record.data && record.data.active);
}
}
}
},
Can anybody help?