Learn how you can bind the Tree Grid data from a local data source, a remote data source, and using an external AJAX request.
Watch the video now: https://www.syncfusion.com/tutorial-videos/angular/treegrid?title=binding-self-referential-data-to-an-angular-tree-grid
Documentation: https://ej2.syncfusion.com/angular/documentation/treegrid/data-binding/
Online example: https://ej2.syncfusion.com/angular/demos/#/material/treegrid/selfreference https://ej2.syncfusion.com/angular/demos/#/material/treegrid/remotedata
Make sure that you have the compatible versions of TypeScript and Angular in your machine before starting to work on this project.
- Angular 4+
- TypeScript 2.6+
To run this application, you need to first clone the How-to-bind-self-referential-data-to-an-Angular-Tree-Grid
repository and then navigate to its appropriate path where it has been in your system.
To do so, open the command prompt and run the below commands one after the other.
git clone https://github.com/SyncfusionSamples/How-to-bind-self-referential-data-to-an-Angular-Tree-Grid treegrid-example
cd treegrid-example
Once done with downloading, next you need to install the necessary packages required to run this application locally. The npm install
command will install all the needed angular packages into your current project and to do so, run the below command.
npm install
Run ng serve
command for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.