Seb*_*ian 3 javascript extjs extjs4
我怎样才能获得Ext.grid.Panel的选定单元格?在ExtJS 3中,有可能通过:
grid.getSelectionModel().getSelectedCell()
Run Code Online (Sandbox Code Playgroud)
在Ext 4中有
grid.getSelectionModel().selected
Run Code Online (Sandbox Code Playgroud)
但这只给了我记录.
可能有更直接的方法来做到这一点,但以下似乎对我有用:
grid.view.getCellByPosition(grid.getSelectionModel().getCurrentPosition());
Run Code Online (Sandbox Code Playgroud)