PDA

View Full Version : column.getCellEditor()!=column.editor



g2mac
19 Jul 2009, 11:12 PM
Hi!
I was surprised that column method getCellEditor() returns not my editor object (editor for grid cell), that i have passed in ColumnModel config.
For test i have set ID property for editor:

editor: {
xtype: 'textfield',
id: 'my_editor',
}
And afteredit i get:
column.getCellEditor(colI,rowI).getId() = 'ext-comp-1033',
column.editor.getId() = 'my_editor'

Is it ok??

Condor
19 Jul 2009, 11:34 PM
The ColumnModel wraps fields in an Ext.grid.GridEditor, so:

column.getCellEditor(colI,rowI).field.getId() == 'my_editor'