Dojo EnhancedGrid:如何选择列?
-
10-10-2019 - |
题
在Dojo增强网格中,有什么方法可以获取所选列?目前,我可以使用grid.selection.getSelected()获得选定的行,但我不知道如何获取所选列。
解决方案
解决了。可以找到:thegrid.focus.cell.field。这将为您提供列名。还有thegrid.focus.cell.index和thegrid.focus.cell.layoutIndex如果整数是您需要的,而不是列名。
不隶属于 StackOverflow