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

ExcelExport Exports Hidden Columns In Child Tables

2 Answers 41 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Albert
Top achievements
Rank 1
Albert asked on 18 Oct 2014, 04:52 PM
I am using Telerik Silverlight version 2013.1.422.

I have RadGridView bound to a hierarchical dataset. Some of the columns in child tables have IsVisible set to false. When I export to Excel, the hidden columns are included, but I do not want them to be. How can I hide them or prevent  them from being exported?

When I export a flat dataset (no child tables) where some columns are hidden in the RadGridView, the export to Excel DOES NOT export the hidden columns. This is the behaviour I want with hierarchical datasets too.

I have been trying to use the ElementExporing event to cancel the export if the element has a column with IsVisible set to false, but it it not working. Please, give me some guidance.

Kind Regards,
Albert

2 Answers, 1 is accepted

Sort by
0
Albert
Top achievements
Rank 1
answered on 19 Oct 2014, 03:57 PM
Figured it out. The problem was in some custom code in the ElementExporting event handler.
0
Dimitrina
Telerik team
answered on 20 Oct 2014, 07:02 AM
Hi Albert,

You can also check the Export FAQ article on more frequently asked questions.

Regards,
Dimitrina
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
GridView
Asked by
Albert
Top achievements
Rank 1
Answers by
Albert
Top achievements
Rank 1
Dimitrina
Telerik team
Share this question
or