英文:
ExtJS GridPanel Entire Row Click
问题
我有一个网格,我需要在用户单击其任何位置时选择该行,也就是说,今天我有一个复选框来选择该行,我想知道是否有Ext本身的任何配置或功能可以实现这一点。
当用户单击任何位置时,我希望选择该行!
基本上与按住键盘控制键(Ctrl)并单击行相同。
英文:
I have a grid and I need to make the line selected, when the user clicks anywhere on it, that is, today I have a checkbox to select the line, I was wondering if there is any configuration or something of the Ext itself that give me that.
And i want to select the row, when user clicks anywhere on it!
Basically the same as pressing the keyboard control (ctrl) and clicking on the line
答案1
得分: 1
复选框选择模型具有属性 checkSelector(抱歉,您没有指定框架版本)。将 checkSelector: '.x-grid-row'
设置为解决您的问题。
英文:
Checkbox selection model has property checkSelector (sorry you dont specified framework version). set checkSelector: '.x-grid-row'
to solve your problem
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论