具有多选功能的 Extjs 网格可检索所选列表的值
假设我有一个带有多选选项的网格,当用户选择 4 个列表并想要获取值(在屏幕上提醒)时,我该怎么做?我如何禁用按钮,直到至少选择一个列表?
Let's say I have a grid with multiselect option on, when user selects 4 lists and wants to get the values ( alerted on screen) how would I do that? And how would I disable buttons untill at least one list is selected?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您提出的所有问题都已多次得到解答。 sencha.com 上还有优秀的 ExtJS 示例。例如 列表视图网格 显示多个选择并具有可写存储的可编辑网格显示按钮单击时启用。但最重要的是文档!让我解释以下代码的功能。其中大部分来自
列表视图
示例。该网格从具有以下结构的
list.php
获取 JSON和网格:
我不知道如何从头开始执行此操作,但我使用了文档并且结果有效;-)。有关详细信息,请参阅网格面板文档。
All questions you've asked are answered many times already. Also there are good ExtJS examples on sencha.com. For example list view grid shows multiple select and editable grid with writable store shows button enable on click. But THE MOST important is documentation! Let me explain functionality on following code. Most of it is from
list view
example.This grid gets JSON from
list.php
which has following structureAnd the grid:
I didn't knew how to do this from top of my head, but I used documentation and the result works ;-). See Grid panel docs for more information.