Checkbox for group header of extjs grouping grid

左心房为你撑大大i 提交于 2019-12-10 15:23:42

问题


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.

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


回答1:


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.

more info could be found here



来源:https://stackoverflow.com/questions/4246940/checkbox-for-group-header-of-extjs-grouping-grid

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!