Gird for Angular 2- exported excel looses aggreagtes

3 posts, 0 answers
  1. Graham
    Graham avatar
    16 posts
    Member since:
    Jun 2011

    Posted 09 May 2017 Link to this post

    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. Dimiter Topalov
    Admin
    Dimiter Topalov avatar
    1266 posts

    Posted 10 May 2017 Link to this post

    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.
  3. Graham
    Graham avatar
    16 posts
    Member since:
    Jun 2011

    Posted 10 May 2017 Link to this post

    Many thanks!

    What you suggested solves my problem.

Back to Top