Example of Default Exporting in Blazor Tree Grid Component
This sample shows client-side exporting of the Tree Grid, which allows you to export its data to Excel, Pdf, and CSV formats. To export Tree Grid data to the desired format, use the toolbar buttons.
Task ID | Task Name | Start Date | Duration | Progress | Priority |
---|
1 | Parent task 1 | 8/28/2022 | 34.00 | In Progress | Critical |
2 | Child task 1 | 8/29/2022 | 1.00 | Validated | Critical |
3 | Child task 2 | 8/30/2022 | 98.00 | Open | Low |
4 | Sub task 1 | 8/29/2022 | 67.00 | Closed | Normal |
5 | Sub task 2 | 8/30/2022 | 14.00 | Closed | Normal |
6 | Sub task 3 | 8/31/2022 | 67.00 | Closed | Normal |
7 | Parent task 2 | 8/29/2022 | 52.00 | Open | Low |
8 | Child task 3 | 8/29/2022 | 1.00 | Validated | Critical |
9 | Child task 4 | 8/30/2022 | 98.00 | Open | Low |
10 | Sub task 4 | 8/29/2022 | 67.00 | Closed | Normal |
11 | Sub task 5 | 8/30/2022 | 14.00 | Closed | Normal |
12 | Sub task 6 | 8/31/2022 | 67.00 | Closed | Normal |
In this demo, toolbar actions are defined in the OnToolbarClick event to export the Tree Grid data using the ExportToExcelAsync, ExportToPdfAsync, and ExportToCsvAsync methods.
More information on exporting can be found in the Excel Export and Pdf Export documentation sections.