Dojo EnhancedGrid: how to get selected column?

2019-08-10 05:55发布

In dojo enhanced grid, is there any way to get the selected columns? Currently I can get selected rows by using grid.selection.getSelected() but I don't know how to get the selected column.

1条回答
趁早两清
2楼-- · 2019-08-10 06:19

Solved. Can be found with this: theGrid.focus.cell.field. This will give you the column name. There is also theGrid.focus.cell.index and theGrid.focus.cell.layoutIndex if integer is what you need instead of column name.

查看更多
登录 后发表回答