This sample demonstrates dynamic show/hide columns feature of Tree Grid. Select column name from the properties panel and click hide/show to toggle visibility.
Task ID | Task Name | Start Date | Duration | Progress |
---|---|---|---|---|
1 | Planning | 2/3/2017 | 5 | 100 |
2 | Plan timeline | 2/3/2017 | 5 | 100 |
3 | Plan budget | 2/3/2017 | 5 | 100 |
4 | Allocate resources | 2/3/2017 | 5 | 100 |
5 | Planning complete | 2/7/2017 | 0 | 0 |
6 | Design | 2/10/2017 | 3 | 86 |
7 | Software Specification | 2/10/2017 | 3 | 60 |
8 | Develop prototype | 2/10/2017 | 3 | 100 |
9 | Get approval from customer | 2/13/2017 | 2 | 100 |
10 | Design Documentation | 2/13/2017 | 2 | 100 |
Column
|
|
|
|
Hidden Columns
|
|
The Tree Grid column can be showed/hidden dynamically using showColumns and hideColumns method of the Grid. In this demo, the columns can be showed and hidden by selecting the column name in the dropdown and click the Show or Hide buttons to toggle visibility. And the column`s visibility is toggled based on the columns->headerText value. The columns->visible property specifies the visibility of a column. To hide a column at the initial rendering, set the columns->visible property to false.