
Originally Posted by
vietits
The items config should be defined outside editor config. Something likes this:
Code:
xtype: 'itscomponentcolumn',
autoRender: true,
autoShow: false,
width: 150,
dataIndex: 'country',
items: function(value) {
return {
xtype: 'combobox',
store: [[1,'In Queue'], [2,'Handling'], [3,'Complete']],
value: value,
width: 130
};
},
editor: {
// define editor config for cellediting
},
One thing to mention here is that this component is for displaying components in grid cell, it is not replacement for cellediting or rowediting plugins.
And how can edit the combobox, i was trying something like this but when i edit is show me both combos from the component, and editor..thanks...
Sin título.png
Code:
xtype: 'itscomponentcolumn',
autoRender: false,
autoShow: false,
width: 150,
dataIndex: 'country',
items: function(value) {
return {
xtype: 'combobox',
store: [[1,'In Queue'], [2,'Handling'], [3,'Complete']],
value: value,
width: 130
};
},
editor: {
xtype: 'combobox',
store: [['In Queue','In Queue'], ['In Queue','Handling'], ['In Queue','Complete']]
},
fixed: false,
text: 'Country'
},