XLSX export event

1 Answer 168 Views
Grid
valentino
Top achievements
Rank 1
valentino asked on 20 Jul 2021, 02:09 PM

Hello,

I know there exist events that precede exporting to Excel (such as InfrastructureExporting)... but does there exist one that is fired after export is finished and the file is ready to download? We're talking standard server side Telerik export via GridTableView.ExportToExcel().

Thank you.

1 Answer, 1 is accepted

Sort by
0
Doncho
Telerik team
answered on 23 Jul 2021, 08:16 AM

Hi Valentino,

I am afraid there is no such event of the RadGrid.

Instead of using the ExportToExcel() method, here is one possible approach in this case:

  1. Generate the excel export output of the RadGrid (see Generate Export Output)
  2. Execute the desired custom code before the actual export.
  3. Send the output as a response to the browser.

You may also find it useful to check out the implementation in two of our demos

Please let me know if any further questions come up.

Kind regards,
Doncho
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Grid
Asked by
valentino
Top achievements
Rank 1
Answers by
Doncho
Telerik team
Share this question
or