Show spinner while exporting in TypeScript Treegrid control
18 Nov 20181 minute to read
You can show/ hide spinner component while exporting the Tree Grid using showSpinner/ hideSpinner methods. You can use toolbarClick event to show spinner before exporting and hide a spinner in the pdfExportComplete or excelExportComplete event after the exporting.
In the toolbarClick event, based on the parameter args.item.text as PDF Export or Excel Export we can call the showSpinner method from Tree Grid instance.
In the pdfExportComplete or excelExportComplete event, We can call the hideSpinner method.
In the below demo, we have rendered the default spinner component when exporting the Tree Grid.
You can refer to our
JavaScript Tree Gridfeature tour page for its groundbreaking feature representations. You can also explore our JavaScript Tree Grid exampleJavaScript Tree Grid exampleto knows how to present and manipulate data.