Даже если вы используете CellSelectionModel, вы можете легко применить стили / классы к строке, в которой находится выбранная ячейка. Если вы посмотрите на события для CellSelectionModel, вы увидите, что cellselect
фактически возвращает rowIndex.
cellselect : (SelectionModel this , Number rowIndex , Number colIndex)
Итак, что вы могли бы так что-то вроде следующего:
// we'll say you have your Grid stored in a variable, grid
CellSelectionModel ...({
listeners: {
'cellselect': function(selModel, rowIndex) {
var cellRow = grid.getView().getRow(rowIndex);
Ext.fly(cellRow).addClass('selectedRow')
// do any other logic with the actual DOM element here
}
})