This is a migrated thread and some comments may be shown as answers.

CellFormatting on RunExportAsync

4 Answers 111 Views
GridView
This is a migrated thread and some comments may be shown as answers.
konrad
Top achievements
Rank 1
konrad asked on 25 Sep 2018, 12:24 PM

I ma using Telerik.WinControls.Export.GridViewSpreadExport to export data to XLSX.

The CellFormatting event is not called when using RunExportAsync().

It is only called when using RunExport();

Why is that?

4 Answers, 1 is accepted

Sort by
0
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 25 Sep 2018, 02:00 PM
Hello, Dominik,  

As it is noted in the online documentation, due to performance considerations and in order to decrease the consumed memory the visual settings and view definitions in RadGridView are not exported when the operation is run async. If you need to export visual settings feel free to run the export synchronously by using the RunExport method.

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
konrad
Top achievements
Rank 1
answered on 27 Sep 2018, 07:59 AM
Fair enough. Thanks for help!
0
Alejandro
Top achievements
Rank 2
answered on 09 Jul 2020, 06:19 PM

I need export with visual settings and Asynchronous, or there a way to export with "RunExport" and show progress bar?

Thanks

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 13 Jul 2020, 08:38 AM
 

Hello, Alejandro,

As it was previously noted, due to performance considerations and in order to decrease the consumed memory the visual settings in RadGridView are not exported when the export operation is run async.

Please refer to the "Exporting Data Asynchronously" section in the following help article which demonstrates how the async spread export feature can be combined with a RadProgressBar control to deliver better user experience: https://docs.telerik.com/devtools/winforms/controls/gridview/exporting-data/spread-export

The progress is not reported when using the RunExport method since it doesn't use a BackgroundWorker which actually reports the progress of the executed work.  
Should you have further questions please let me know.

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik

Tags
GridView
Asked by
konrad
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
konrad
Top achievements
Rank 1
Alejandro
Top achievements
Rank 2
Share this question
or