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

Export Grouping to Excel ML

2 Answers 165 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Sharon Eden
Top achievements
Rank 1
Sharon Eden asked on 23 Jun 2010, 02:13 PM
Hi,

I need to find a way to export a gridview to excel but without duplicate data in some of the columns. for example if i have three columns, customer ID, date  and revenue, i'd like to have the customer ID (which is the same for several consecutive rows) displayed only for the first row with the same ID while the other column should display all of their values.

as  far as i understand there are two option:
1. export to Excel the gridview with its grouping hierarchy to excel using the ExcelML method. but i cant find a way to do it. is this possible at all?

2. another option it to clone the gridview (i need the original for the display) and clear the cells with the redundant ID's, but i couldn't find a way to clone the grid view.

thanks in advance for your help.

Sharon.

2 Answers, 1 is accepted

Sort by
0
Sharon Eden
Top achievements
Rank 1
answered on 28 Jun 2010, 01:06 PM
Any news about this one?

Thanks.
0
Martin Vasilev
Telerik team
answered on 29 Jun 2010, 08:53 AM
Hi Sharon Eden,

Thank you for writing.

Currently, RadGridView does not support exporting grouped data to an Excel file. However, I think you can achieve described result by using ExportToExcelML class and its ExcelCellFormating event. This way you can remove the unwanted values only in the exported file. Please find more information about this event in our product documentation.

Let me know if you have any additional questions.

All the best,
Martin Vasilev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Sharon Eden
Top achievements
Rank 1
Answers by
Sharon Eden
Top achievements
Rank 1
Martin Vasilev
Telerik team
Share this question
or