Example of Self Reference Data in ASP.NET Core Tree Grid Control

Tree Grid
Data Binding
Self Reference Data

This sample demonstrates the way of binding self-referential flat data to TreeGrid component.

1
Parent Task 1
10/23/20171070
2
Child task 1
10/23/2017480
3
Child Task 2
10/24/2017565
4
Child task 3
10/25/2017677
5
Parent Task 2
10/23/20171070
6
Child task 1
10/23/2017480
7
Child Task 2
10/24/2017565
8
Child task 3
10/25/2017677
9
Child task 4
10/25/2017677
10
Parent Task 3
10/23/20171070
11
Child task 1
10/23/2017480
12
Child Task 2
10/24/2017565
1 of 2 pages (15 items)

TreeGrid can be bound either to local or remote data services. The dataSource property can be assigned either with the array of JavaScript objects or using DataManager.

In this demo, the array of self-referential flat data with parent ID is assigned as the data source to the TreeGrid.


More information on the data binding can be found in this documentation section.

Transform your ASP.NET Core web apps today with Syncfusion® ASP.NET Core components
100+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE
opens in a new tab