如何在ExtJS 4中确定Ext.grid.Panel的选定单元格? [英] How to determine the selected cell of a Ext.grid.Panel in ExtJS 4?
本文介绍了如何在ExtJS 4中确定Ext.grid.Panel的选定单元格?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何获取Ext.grid.Panel的选定单元格?
在ExtJS 3中,可以通过以下方式:
how can i get the selected cell of a Ext.grid.Panel? In ExtJS 3 it was possible via:
grid.getSelectionModel().getSelectedCell()
在Ext 4中有
grid.getSelectionModel().selected
但这只会给我记录。 >
but this only gives me the record.
推荐答案
可能有更直接的方法来做到这一点,但以下内容似乎适用于我:
There may be a more direct way to do this but the following seems to work for me:
grid.view.getCellByPosition(grid.getSelectionModel().getCurrentPosition());
这篇关于如何在ExtJS 4中确定Ext.grid.Panel的选定单元格?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文