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

multi-line footer totals grid excel extraction

1 Answer 61 Views
Grid
This is a migrated thread and some comments may be shown as answers.
DrGiorgini
Top achievements
Rank 1
DrGiorgini asked on 14 Sep 2017, 10:44 AM

Hello,

i created a grid with multi-line footer according to this example:

http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/how-to/totals-in-grid-footers

and added an excel export according to this tutorial:

http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/functionality/exporting/overview

but opening the extracted xls file file i see footer data messed up with values concatenated in a single cell.

How to get a proper xls extraction?

Regards.

1 Answer, 1 is accepted

Sort by
0
DrGiorgini
Top achievements
Rank 1
answered on 18 Sep 2017, 08:31 AM

For now, i am using a trick.
I am injecting totals into datasource so they are rendered in datagrid queued to other rows.
Handling ItemDataBound i can change background color for these added rows.

This is not exactly a clean solution but it works.

For the future, i think you should evaluate to implement multirows footers and aggregation with partitioning.

Regards.

Tags
Grid
Asked by
DrGiorgini
Top achievements
Rank 1
Answers by
DrGiorgini
Top achievements
Rank 1
Share this question
or