Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 2.48 KB

File metadata and controls

41 lines (28 loc) · 2.48 KB

DataGrid for DevExtreme - How to implement a three-state "Select All" CheckBox in a group row

This example demonstrates how to implement a custom "Select All" CheckBox in a group row to select all rows in this group. This CheckBox can have three states: unchecked, checked, or undetermined (when only several of the group members are checked).

This solution is designed to work with in-memory data.

Implement a three-state "Select All" CheckBox

Implementation details

Implement a GroupSelectionHelper helper class. Use the customizeColumns function to specify the groupCellTemplate that creates a CheckBox for every group row.

The synchronizeCheckBoxes function in the helper class is called every time user makes a selection. In this example, this function helps to synchronize parent and nested group rows.

Files to Look At

Documentation

More Examples