It is possible to have a checkbox in the header for selection.
To configure the column to have checkbox, set col Def.header Checkbox Selection=true.
In this scenario the group itself will never appear in the selected Rows list.
The example also shows a checkbox for selection on the age column.
aspdotnet-suresh offers C#articles and tutorials,csharp dot net,articles and tutorials, VB.
This is achieved by providing functions for col Def.checkbox Selection and auto Group Column Renderer Params.checkbox.
grid Options.checkbox Selection can also be specified as a function - use this if you want, for example, the first column to have checkbox selection regardless of which column it is (you would do this by looping the columns using the column API, and check if the first column is the current one (in checkbox Selection).
When doing grouping, you control what selecting a group means.
If the node is a group node and the group selection is set to 'children', then this will return true if all child (and grand child) nodes are selected, false if all unselected, or undefined if a mixture.
The grid API has the following methods for selection: There is an api function for Each Node.