当我单击下面的网格单元格时,我想将类添加到行中,
我尝试了三个选项但不起作用。如何使它工作谢谢
listeners: {
,'cellclick': function (grid, td, cellIndex, record, tr, rowIndex, e, eOpts ) {
// addclass to row
Ext.fly(grid.getView().getRow(rowIndex)).addClass('bluerow'); // not working
grid.getView().addRowCls(rowIndex, 'bluerow'); // not working
Ext.get(e.target).addClass('bluerow'); // not working
}
}