Hello Support Team,
i'm experimenting currently with your pivot tables. I checked your examples for esspecially for exporting and i am wondering why all examples of exporting and customizing the output files (ecxel,csv,pdf) are triggered from a external Button. I'd like to use the "internal" toolbar export button for export and want to customize it, like we can do it in grids.
Could you show me a tiny example how to customize a pdf export when using the toolbar export item?
Regards
Stefan
Hi Stefan,
Please find the response below.
Query |
Comments |
|
I checked your examples for especially for exporting and I am wondering why all examples of exporting and customizing the output files are triggered from an external Button. I'd like to use the "internal" toolbar export button for export and want to customize it, like we can do it in grids. |
We have built-in toolbar menu option for PDF, Excel and CSV exporting, you can use it by setting AllowPdfExport and AllowExcelExport as true and adding Enum value “Export” to toolbar items. Furthermore, by using the BeforeExport event, you can customize the PDF or Excel export properties before exporting them.
Code Example:
Output Screenshot:
To know more about “BeforeExport” event , please look at UG document below.
UG Document: https://blazor.syncfusion.com/documentation/pivot-table/tool-bar#beforeexport
Meanwhile we have prepared a sample for your reference.
Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/PivotTable-825787215
|
|
Could you show me a tiny example how to customize a pdf export when using the custom toolbar export item? |
You can use the ToolbarRendered event to add a custom toolbar item for PDF export and customize the PDF export properties while exporting with an external button click.
Code Example:
Output Screenshot:
To know more about “ToolbarRendered” event , please look at UG document below.
UG Document: https://blazor.syncfusion.com/documentation/pivot-table/events#toolbarrendered
Meanwhile we have prepared a sample for your reference.
Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/PivotTable-825787215
|
Please let us know if you have any concerns.
Regards,
Rajeshkannah G