Search code examples
javascriptextjsextjs4

How to determine the selected cell of a Ext.grid.Panel in ExtJS 4?


how can i get the selected cell of a Ext.grid.Panel? In ExtJS 3 it was possible via:

grid.getSelectionModel().getSelectedCell()

In Ext 4 there is

grid.getSelectionModel().selected

but this only gives me the record.


Solution

  • There may be a more direct way to do this but the following seems to work for me:

    grid.view.getCellByPosition(grid.getSelectionModel().getCurrentPosition());