Example of Checkbox Selection in Angular Tree Grid Component

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.

1
Planning2/3/20175100Normal
2
Plan timeline2/3/20175100Normal
3
Plan budget2/3/20175100Low
4
Allocate resources2/3/20175100Critical
5
Planning complete2/7/201700Low
6
Design2/10/2017386High
7
Software Specification2/10/2017360Normal
8
Develop prototype2/10/20173100Critical
9
Get approval from customer2/13/20172100Low
10
Design Documentation2/13/20172100High
11
Design complete2/14/201700Normal
12
Implementation Phase2/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.