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

Folders and files

NameName
Last commit message
Last commit date
Mar 3, 2025
Dec 25, 2024
Dec 25, 2024
Dec 25, 2024
Dec 25, 2024
Dec 28, 2023
Dec 25, 2024
Apr 23, 2018
Nov 1, 2023
Dec 25, 2024
Apr 23, 2018
Apr 16, 2025
Sep 7, 2020
Feb 14, 2022
Apr 16, 2025

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)