Example of Default Exporting in ASP.NET Core Tree Grid Control
This sample demonstrates the client-side exporting of the TreeGrid, which allows you to export its data to the Excel, Pdf and CSV formats. Use the toolbar buttons to export TreeGrid data to desired format.
By using the Persist collapsed state checkbox we can persist the Expand/Collpase state of Tree Grid in exported document
Task ID | Task Name | Start Date | End Date | Duration | Progress |
---|---|---|---|---|---|
1 | Planning | 3/2/2017 | 7/2/2017 | 5 | 100 |
2 | Plan timeline | 3/2/2017 | 7/2/2017 | 5 | 100 |
3 | Plan budget | 3/2/2017 | 7/2/2017 | 5 | 100 |
4 | Allocate resources | 3/2/2017 | 7/2/2017 | 5 | 100 |
5 | Planning complete | 7/2/2017 | 7/2/2017 | 1 | 1 |
6 | Design | 10/2/2017 | 2/14/2017 | 3 | 86 |
7 | Software Specification | 10/2/2017 | 2/12/2017 | 3 | 60 |
8 | Develop prototype | 10/2/2017 | 2/12/2017 | 3 | 100 |
9 | Get approval from customer | 2/13/2017 | 2/14/2017 | 2 | 100 |
10 | Design complete | 2/14/2017 | 2/14/2017 | 1 | 1 |
11 | Implementation Phase | 2/17/2017 | 2/17/2017 | 11 | 66 |
12 | Phase 1 | 2/17/2017 | 2/27/2017 | 11 | 50 |
13 | Implementation Module 1 | 2/17/2017 | 2/27/2017 | 11 | 10 |
14 | Development Task 1 | 2/17/2017 | 2/19/2017 | 3 | 50 |
15 | Development Task 2 | 2/17/2017 | 2/19/2017 | 3 | 50 |
16 | Testing | 2/20/2017 | 2/21/2017 | 2 | 1 |
17 | Bug fix | 2/24/2017 | 2/25/2017 | 2 | 1 |
18 | Customer review meeting | 2/26/2017 | 2/27/2017 | 2 | 1 |
19 | Phase 1 complete | 2/27/2017 | 2/27/2017 | 2 | 50 |
20 | Phase 2 | 2/17/2017 | 2/28/2017 | 12 | 60 |
21 | Implementation Module 2 | 2/17/2017 | 2/28/2017 | 12 | 90 |
22 | Development Task 1 | 2/17/2017 | 2/20/2017 | 4 | 50 |
23 | Development Task 2 | 2/17/2017 | 2/20/2017 | 4 | 50 |
24 | Testing | 2/21/2017 | 2/24/2017 | 2 | 1 |
25 | Bug fix | 2/25/2017 | 2/26/2017 | 2 | 1 |
26 | Customer review meeting | 2/27/2017 | 2/28/2017 | 2 | 1 |
27 | Phase 2 complete | 2/28/2017 | 2/28/2017 | 2 | 50 |
28 | Phase 3 | 2/17/2017 | 2/27/2017 | 11 | 30 |
29 | Implementation Module 3 | 2/17/2017 | 2/27/2017 | 11 | 60 |
30 | Development Task 1 | 2/17/2017 | 2/19/2017 | 3 | 50 |
31 | Development Task 2 | 2/17/2017 | 2/19/2017 | 3 | 50 |
32 | Testing | 2/20/2017 | 2/21/2017 | 2 | 1 |
33 | Bug fix | 2/24/2017 | 2/25/2017 | 2 | 1 |
34 | Customer review meeting | 2/26/2017 | 2/27/2017 | 2 | 1 |
35 | Phase 3 complete | 2/27/2017 | 2/27/2017 | 2 | 50 |
TreeGrid supports client-side exporting which allows you to export its data to the Excel, Pdf and CSV formats.
In this demo, for the toolbar items of exporting, we have defined actions in toolbarClick
event to export the TreeGrid data using the excelExport
, pdfExport
and csvExport
methods.
More information on the Pdf exporting and Excel exporting can be found in documentation section.