View Full Version : Row Highlight within the EditorGridPanel?

7 Dec 2007, 5:24 AM
Hi all-

Is it possible to highlight the selected row of an EditorGridPanel? On a normal grid, I can use the disableSelection attribute to turn on/off a row selection/highlight, but in the EditorGrid, it seems that teh rows do not highlight as a user selects a cell to edit, etc.

Any ideas?

Talk soon

12 Dec 2007, 8:42 AM
I too think that this functionality would be useful.

I currently use the panel to list data that can be changed. Like the Editor Grid Example http://extjs.com/deploy/dev/examples/grid/edit-grid.html, I can add rows, but because rows cannot be selected in the current EditorGridPanel implementation, I cannot select any rows for deletion.

Does anyone have a suggestion on how to enable selection of rows in the EditorGridPanel? The code of the EditorGridPanel looks deceptively simple :-? and I am missing how it overrides the selection model.



14 Dec 2007, 1:34 AM
Default selection model for ordinary grids is RowSelectionModel, but for EditorGridPanel default s.m. is CellSelectionModel.
Setting RowSelectionModel as selection model for EditorGridPanel seems to work.