Example of Checkbox Selection in React Tree Grid Component

/
/
CheckboxSelection

This sample demonstrates the selection functionality of the Tree Grid using checkbox selection, To select and unselect all rows use header checkbox. To select/unselect particular row, click the desired row.

More Details...

1
Planning
2/3/20175100Normal
2
Plan timeline
2/3/20175100Normal
3
Plan budget
2/3/20175100Low
4
Allocate resources
2/3/20175100Critical
5
Planning complete
2/7/201700Low
6
Design
2/10/2017386High
7
Software Specification
2/10/2017360Normal
8
Develop prototype
2/10/20173100Critical
9
Get approval from customer
2/13/20172100Low
10
Design Documentation
2/13/20172100High
11
Design complete
2/14/201700Normal
12
Implementation Phase
2/17/20171166Normal
1 of 3 pages (36 items)
Description

Tree Grid mutliple selection can be achieved with help of checkbox in each row. To render checkbox in each Tree Grid row, you need to define column type as checkbox using columns->type property.

Selection can be persisted on all the operations using selectionSettings-> persistSelection property. For persisting selection on the Tree Grid, any one of the column should be defined as a primary key using columns->isPrimaryKey property.

In this demo, Tree Grid mutliple selection has been enabled with selection persistance.

More information on the checkbox selection configuration can be found in this documentation section.