问题
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