Skip to content

This example demonstrates how to implement a custom "Select All" CheckBox in a group row to select all rows in this group.

License

Notifications You must be signed in to change notification settings

DevExpress-Examples/devextreme-datagrid-select-all-checkboxes

Repository files navigation

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 example supports the DataGrid.remoteOperations option.

DataGrid may query all data when selecting a group row with many data records. You can use the DataGrid.selection.maxFilterLengthInRequest private option to increase this threshold but it may result in Error 400. Make sure that your server supports long URLs. Also, make sure to test maxFilterLengthInRequest after every DevExtreme upgrade since we may change this private API without notifications.

image

Files to Review

Implementation details

The GroupSelectionBehavior class uses the customizeColumns function to specify groupCellTemplate for all columns. This template creates a CheckBox for every group row.

Documentation

More Examples

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)

About

This example demonstrates how to implement a custom "Select All" CheckBox in a group row to select all rows in this group.

Topics

Resources

License

Stars

Watchers

Forks