ExtJS GridPanel点击整行

huangapple go评论171阅读模式
英文:

ExtJS GridPanel Entire Row Click

问题

我有一个网格,我需要在用户单击其任何位置时选择该行,也就是说,今天我有一个复选框来选择该行,我想知道是否有Ext本身的任何配置或功能可以实现这一点。

今天我有这个:
ExtJS GridPanel点击整行

当用户单击任何位置时,我希望选择该行!

基本上与按住键盘控制键(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.

Today i have this:
ExtJS GridPanel点击整行

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

https://fiddle.sencha.com/#view/editor&fiddle/32g9

huangapple
  • 本文由 发表于 2020年1月6日 19:51:22
  • 转载请务必保留本文链接:https://go.coder-hub.com/59611621.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定