Learn how you can export the Syncfusion Angular Tree Grid control with complete customization. This sample explains how to export Angular Tree Grid to both PDF and Excel formats. Also, you will learn how to customize the documents before exporting them. The exporting customization includes customizing file names, adding headers and footers, and applying font-oriented customization to headers and records.
Watch the video now: https://www.syncfusion.com/tutorial-videos/angular/treegrid?title=exporting-angular-tree-grid-with-complete-customization
Documentation: https://ej2.syncfusion.com/angular/documentation/treegrid/pdf-export/
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 Exporting Angular TreeGrid with Complete Customization
repository and then navigate to the path where it has been stored in your system.
To do so, open the command prompt and run the below commands one after the other.
git clone https://github.com/SyncfusionExamples/Exporting-Angular-TreeGrid-with-Complete-Customization treegrid-example
cd treegrid-example
Once done with downloading, you need to install the packages required to run this application locally. To do so, run the following command:
npm install
This will install all the needed Angular packages into your current project.
Run the ng serve
command for a dev server. Navigate to https://localhost:4200/
. The app will automatically reload if you change any of the source files.
To get more help with the Angular CLI, use ng help
or check out the Angular CLI README.