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

Export to Excel function using fetchData problem

1 Answer 10 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Veteran
Iron
Paul asked on 22 May 2019, 06:30 PM

I have a grid that is receiving paged data from the server (paging is done on the server) that is bound to a GridDataResult. When the Export to excel button is clicked I need to get all of the data, not just the displayed page. I tried to configure the export as shown in the example using the kendoGridExcel component (<kendo-grid-excel [fetchData]="onExcelExportClicked()" fileName="MyExcelFile.xlsx"></kendo-grid-excel>). After adding this to the grid, the function onExcelExportClicked gets called anytime something happens to the page (not even related to the grid). It gets executed multiple times on page load and each time I click on any control on the page. Is this the expected behavior?

 

Paul

 

1 Answer, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 24 May 2019, 03:35 PM
Hello Paul,

Thank you for bringing this issue to our attention. I logged it in kendo-angular GitHub issue tracker for further investigation.
You may track the issue status using this link.

Regards,
Alexander Valchev
Progress Telerik
Get quickly onboarded and successful with your Telerik and Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Grid
Asked by
Paul
Top achievements
Rank 1
Veteran
Iron
Answers by
Alexander Valchev
Telerik team
Share this question
or