Telerik Blazor Grid OnBeforeExport problem.

2 Answers 332 Views
Grid
Thod
Top achievements
Rank 1
Iron
Thod asked on 03 May 2022, 07:23 PM

Hi, I am using grid programmatic  export  SaveAsExcelFileAsync();  but the event OnBeforeExport never fires.

Is there any problem when calling from programmatic export?  When using the default button export it fires normally.

I am using the latest version 3.2.0.

Thank you,

Thod

2 Answers, 1 is accepted

Sort by
0
Accepted
Joana
Telerik team
answered on 06 May 2022, 01:49 PM

Hi Thod,

By default, the events fire only for operations that our customers do not have the control over. Thus, in the sceanario of programatic export the customer initiates the export operation. 

However, what we are currently missing in our API methods is the possibility to define the export options. We have a logged feature request on the matter to assure that everything is available through the methods:

https://feedback.telerik.com/blazor/1563558 

Regards,
Joana
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.

0
Thod
Top achievements
Rank 1
Iron
answered on 10 May 2022, 11:39 AM

Thank you for your answer Joana.

I was confused because at your  export events guide you say that 

"The OnBeforeExport event fires after the user clicked the ExcelExport or CsvExport buttons, or by programmatically invoking the export."

https://docs.telerik.com/blazor-ui/components/grid/export/events

Customizing the export will be very useful so i am waiting for this future.

Thank you

Thod

 

 

 

Tags
Grid
Asked by
Thod
Top achievements
Rank 1
Iron
Answers by
Joana
Telerik team
Thod
Top achievements
Rank 1
Iron
Share this question
or