Get Free Trial

Modify export options dynamically

Answered
Luc Schulz asked on June 10, 2021

When the user clicks an option in the Export tab for a table, is there a way to cancel the export and instead call a custom function?
 
What I’m trying to do is specify options for an export after the user clicks one of the export buttons.
 
I’d like to avoid adding customized buttons or separate functions for each table on a page.

2 answers

Public
Vera Didenko Vera Didenko Flexmonster June 11, 2021

Hello, 
 
Thank you for your question.
 
Yes, you can override the Export Tab’s behavior by customizing the Toolbar.
Here is a JSFiddle for illustration: https://jsfiddle.net/flexmonster/mugLx40n/.
In the example, a custom function is provided for the "Export" -> "To PDF" Toolbar Tab.
 
Please let us know if this works fine for you.
 
Kind regards,
Vera

Public
Luc Schulz June 11, 2021

Thanks!

Please login or Register to Submit Answer