Dojo EnhancedGrid: how to get selected column?

妖精的绣舞 提交于 2020-01-05 07:41:19

问题


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:


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.



来源:https://stackoverflow.com/questions/4447578/dojo-enhancedgrid-how-to-get-selected-column

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!