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

[Solved] Export to Excel not working with ClientGroupFooterTemplate and data variable

2 Answers 360 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Noah
Top achievements
Rank 2
Iron
Iron
Iron
Noah asked on 22 Apr 2015, 08:58 PM

I have a column in an MVC grid with grouped data defined like this...

columns.Bound(m => m.Location).ClientGroupFooterTemplate("#= data.parent().value #");

This causes the excel export feature to fail.  It works with the standard aggregate values like 'sum' but if any of the columns have a group footer template that references the 'data' variable it causes the excel export to fail.

2 Answers, 1 is accepted

Sort by
0
Noah
Top achievements
Rank 2
Iron
Iron
Iron
answered on 23 Apr 2015, 04:02 PM
I got the latest internal build and now it doesn't crash and the excel file is created.  The only problem is now the Group footers are including the HTML from their client templates.  Is there a good workaround to get non-html content in those group footers during the excel export?

0
Atanas Korchev
Telerik team
answered on 24 Apr 2015, 11:13 AM
Hi Noah,

Indeed this was an issue that we addressed with the latest internal build.

To avoid seeing the HTML in the Excel you need to write some code. This demo shows how: http://docs.telerik.com/kendo-ui/web/grid/how-to/excel/footer-alignment

Regards,
Atanas Korchev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Noah
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Noah
Top achievements
Rank 2
Iron
Iron
Iron
Atanas Korchev
Telerik team
Share this question
or