I'm having little trouble with extJS and EditorGridPanel.
I created EditorGridPanel with editions columns: one of them editable. The Editor of this column works correctly, but when I check some field in combo on gridePanel, it inserts a "bad" value.
This is my code:
this.grid = new Ext.grid.EditorGridPanel({
frame: true,
autoHeight: true,
id: 'grid-editMc',
clicksToEdit: 1,
loadMask: true,
columnLines: true,
store: this.getStore(),
sm: selmode,
cm: new Ext.grid.ColumnModel({
columns: [{
header: 'Преподаватель',
css: 'vertical-align:middle;',
dataIndex: 'teacher',
sortable: false,
editor: this.teacherEdit()
}],
defaultSortable: true
}),
})
For example, in the store I have record: id:4, teacher:'Mark'. When I change combo in the grid cell insert 4 (not 'Mark'). I want to have a cell value 'id' and text 'teacher'.