如何从网格中检查CheckBox获取详细信息? [英] How to get details from checking CheckBox in grid?

查看:93
本文介绍了如何从网格中检查CheckBox获取详细信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有EditorGridPanel,Grid的ColumnModel包含TextField,ComboBox和CheckBox。
编辑TextField或ComboBox后,afteredit事件包含有关编辑字段的详细信息。
当我检查/取消选中复选框字段时,没有任何事件会给出任何复选框的详细信息。

解决方案

选择模型呈现一列可以切换以选择或取消选择网格中的行的复选框。



尝试在复选框选择模型上应用侦听器。



docs: Ext.selection.CheckboxModel-event-selectionchange



参考:示例


I have EditorGridPanel, the grid's ColumnModel includes TextField, ComboBox and CheckBox. After editing TextField or ComboBox, "afteredit" event, which contains details about the edited field, fired. When I checking/unchecking the CheckBox field, there is no event that gives any detail about which CheckBox pressed.

解决方案

A selection model renders a column of checkboxes that can be toggled to select or deselect rows in grid.

try applying listeners on check box selection model.

docs : Ext.selection.CheckboxModel-event-selectionchange

refer : example

这篇关于如何从网格中检查CheckBox获取详细信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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