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

Gird for Angular 2- exported excel looses aggreagtes

2 Answers 37 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Graham
Top achievements
Rank 1
Graham asked on 09 May 2017, 06:30 AM

I slightly modified following example: http://www.telerik.com/kendo-angular-ui/components/grid/excel-export/#toc-exporting-specific-data

I just added "sum" aggregate to "ProductID" field. It works fine in the grid. But when I try to save the grid as an excel file, I loose  that aggregate. Though the excel file contains grouped data.

Here is a plunker to reproduce: http://plnkr.co/edit/ej4yEj2wZO0RoHXlzqGF?p=preview

Could someone help me to fix that plunker, please?

 

2 Answers, 1 is accepted

Sort by
0
Dimiter Topalov
Telerik team
answered on 10 May 2017, 01:06 PM
Hi Graham,

Thank you for bringing this issue to our attention. It is logged, and we will do our best to fix it for the next release of the excel-export package.

Meanwhile, I can suggest a straightforward workaround - use the hardcoded field name, instead of the "field" variable in the group footer template, e.g.:

http://plnkr.co/edit/JpSkBXjq1CHXqbr5NWjb?p=preview

I hope this helps, and I apologize for any inconvenience caused. I have also updated your Telerik points for helping us improve the quality of our product.

Regards,
Dimiter Topalov
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Graham
Top achievements
Rank 1
answered on 10 May 2017, 01:39 PM

Many thanks!

What you suggested solves my problem.

Tags
Grid
Asked by
Graham
Top achievements
Rank 1
Answers by
Dimiter Topalov
Telerik team
Graham
Top achievements
Rank 1
Share this question
or