View Full Version : Equivalent code in ExtJS 4.2

7 May 2013, 4:57 AM
Hi,Can anybody help me with equivalent code in ExtJs 4.2 ?cm = grid.getColumnModel();cm.getCellEditor(colIndex, rowIndex);cm.setEditable(colIndex, true / false);grid.focusCell(row, col);grid.startEditing(rowIndex, colIndex);grid.stopEditing();
Thank You
Manish Pandit

7 May 2013, 5:00 AM
Formattted One

cm = grid.getColumnModel();
cm.getCellEditor(colIndex, rowIndex);
cm.setEditable(colIndex, true / false);
grid.focusCell(row, col);
grid.startEditing(rowIndex, colIndex);

7 May 2013, 6:22 AM
In this case, I'm using Ext.grid.plugin.CellEditing (http://docs.sencha.com/extjs/4.2.0/#!/api/Ext.grid.plugin.CellEditing).

row: 0,
column: 0

Also see completeEdit() (http://docs.sencha.com/extjs/4.2.0/#!/api/Ext.grid.plugin.CellEditing-method-completeEdit).

You can trap the beforeedit (http://docs.sencha.com/extjs/4.2.0/#!/api/Ext.grid.plugin.CellEditing-event-beforeedit) and edit (http://docs.sencha.com/extjs/4.2.0/#!/api/Ext.grid.plugin.CellEditing-event-edit) events on the grid to enable/disable cell editing.

7 May 2013, 6:49 AM
Thanks, it did work but for Grid without Locked Columns.If the grid is locked then this does not work.

I want to navigate from the last locked column to the first column of the normal grid.
basically it creates 2 grid normal and locked when locked columns are marked as true.