Dojo EnhancedGrid:如何获取选定列? [英] Dojo EnhancedGrid: how to get selected column?

查看:143
本文介绍了Dojo EnhancedGrid:如何获取选定列?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在dojo增强型网格中,有没有办法获取选定的列?
目前我可以通过grid.selection.getSelected()获取选定的行,但是我不知道如何获取选定的列。

解决方案

解决。
可以找到:theGrid.focus.cell.field。这将给你列名称。
如果整数是你需要的而不是列名,还有theGrid.focus.cell.index和theGrid.focus.cell.layoutIndex。


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.

解决方案

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.

这篇关于Dojo EnhancedGrid:如何获取选定列?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆