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

Group Headers not appearing while exporting to excel

1 Answer 47 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Shubh
Top achievements
Rank 1
Shubh asked on 09 Aug 2010, 03:46 PM
Hi Telerik Team,

The issue is my group headers are not coming while exporting since I am writing the following code:
if (e.Item is GridGroupHeaderItem)
{
(e.Item
as GridGroupHeaderItem).DataCell.Visible = false;
e.Item.PreRender +=
new EventHandler(Item_PreRender);
}
which is hiding the GroupHeaders DataCell since I need to customize the header as demonstrated in the following link
http://www.telerik.com/help/aspnet-ajax/aligning_items_in_groupheader2.html

Now,Please let me know with (e.Item as GridGroupHeaderItem).DataCell.Visible = false;
 and creating my own Table cells for the group header how can I bring the group header while exporting to excel?

I think export to excel takes group headers from Datacell only it does not identify anything else.Since I am adding table cells manually in the header it is not getting those.Please let me know how to resolve this issue?
Regards,
Shubh

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 16 Aug 2010, 09:57 AM
Hello Shubh,

Please don't post the same question in multiple threads:
Ignore grouping header when exporting to Excel

Regards,
Daniel
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
Grid
Asked by
Shubh
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or