分组网格的组头标题的复选框 [英] Checkbox for group header of extjs grouping grid

查看:151
本文介绍了分组网格的组头标题的复选框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个ExtJs EditorGridPanel 配置了一个 GroupingStore GroupingView 和一个 CheckboxSelectionModel

I am having a ExtJs EditorGridPanel configured with a GroupingStore, GroupingView and a CheckboxSelectionModel.

复选框出现在网格的标题和所有行中。我也想要在组头上复选框。我的目的是让用户通过选择组头的复选框来选择组下的所有记录。

The Checkbox appears in the grid's header and in all the rows. I want to bring the checkbox on the group header also. My intention is to let the user select all records under a group by selecting the group header's checkbox.

有没有办法做到这一点?我正在使用ExtJs 3.1.1和 RowActions 插件从saki。

Is there a way to do this? I'm using ExtJs 3.1.1 and RowActions plugin from saki.

推荐答案

我找到了一种方法来使用groupView中的groupTextTpl配置选项来渲染一个复选框,并使用grid的groupClick事件来处理复选框点击事件。

I found a way to acheive this using groupTextTpl config option in groupingView to render a checkbox and using groupClick event of grid to handle the checkbox click event.

可以找到更多信息 here

这篇关于分组网格的组头标题的复选框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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