PDA

View Full Version : access to Ext.grid.GridPanel.editor object



Bdfy
4 Mar 2010, 8:50 AM
Use ext-3.0:
r = new Ext.grid.GridPanel({
columns: [
{
header: '????.?????',
id: 'trademark_id',
editor: new Ext.form.ComboBox({
id: 'test',
store: ....
},this)
},
]

});

alert(r.colModel.getColumnById('trademark_id').editor.id)

alert return 'test' value.

in ext-3.1.1:
alert return 'ext-comp-1002' value.

How I can give access for example to store object in 3.1.1 ?

Animal
5 Mar 2010, 12:10 AM
EditorGridPanel

and http://www.extjs.com/deploy/dev/docs/?class=Ext.grid.Column&member=getCellEditor

Animal
5 Mar 2010, 12:11 AM
And DO NOT USE alert!

DEBUG