When user clicks "Export" button it takes about 10 minutes before download starts for grid with 300 000 records. Is there a way to display a loading indicator at least while export file is generating?
1 Answer, 1 is accepted
0
Martin Bechev
Telerik team
answered on 01 Sep 2020, 06:35 AM
Hello Nikolay,
Implementing a Loading indicator would be ideal in this case, but notifying the user when the export operation is complete is troublesome, as we don't get enough feedback from the browser.
There are three distinct operations that make up the export:
Collecting and processing the data. The excelExport is fired at the end of this task.
Generating the MS Excel Document and encoding it as Base64 string. No event is fired at this stage.
Saving the exported document directly in the browser or by using a server proxy. No event is fired at this stage.
The end of step 3 is ideally when we want to notify the user. However, there's no browser event that we can hook to.
Saving the file is an asynchronous operation that does not report back to the main thread. Maybe the server-side proxy can be extended to provide a status end-point that blocks while the request for a particular user completes. I am afraid that we don't have any specific examples to share.
Regards,
Martin Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.