This demo shows the way of binding an array of JavaScript objects (local JSON datasource) to Tree Grid.
Task ID | Task Name | Start Date | End Date | Duration | Progress | Priority |
---|---|---|---|---|---|---|
1 | Planning | 2/3/2017 | 2/7/2017 | 5 | 100 | Normal |
2 | Plan timeline | 2/3/2017 | 2/7/2017 | 5 | 100 | Normal |
3 | Plan budget | 2/3/2017 | 2/7/2017 | 5 | 100 | Low |
4 | Allocate resources | 2/3/2017 | 2/7/2017 | 5 | 100 | Critical |
5 | Planning complete | 2/7/2017 | 2/7/2017 | 0 | 0 | Low |
6 | Design | 2/10/2017 | 2/14/2017 | 3 | 86 | High |
7 | Software Specification | 2/10/2017 | 2/12/2017 | 3 | 60 | Normal |
8 | Develop prototype | 2/10/2017 | 2/12/2017 | 3 | 100 | Critical |
9 | Get approval from customer | 2/13/2017 | 2/14/2017 | 2 | 100 | Low |
10 | Design Documentation | 2/13/2017 | 2/14/2017 | 2 | 100 | High |
Tree Grid can be bound either to local or remote data services. The dataSource
property can be assigned either with the array of JavaScript objects or instance of DataManager
.
In this demo, the array of JavaScript objects is assigned as the data source to the Tree Grid.
More information on the local data binding can be found in this documentation section.