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

Export only Visible Columns in Grid View

2 Answers 156 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ernie S
Top achievements
Rank 1
Ernie S asked on 24 Jul 2014, 01:56 PM
I am found the option to export Telerik.Windows.Controls.GridView.Export() method and the GridViewExportOptions.  But when I do the export it does it on all columns even if only one is set to visible.  I see the option ToCsv() and ToExcel() and can probably refactor them in but was hoping for something more direct since these tables can get big.  Is there?

Thanks
Ernie

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimitrina
Telerik team
answered on 25 Jul 2014, 10:30 AM
Hi Ernie,

I tested exporting not visible column (configured with IsVisible="False") and they were not exported.

May I ask you to share more details on the exact setup you have?

Regards,
Didie
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Ernie S
Top achievements
Rank 1
answered on 30 Jul 2014, 10:23 PM
Ok, well this is strange.  Now I cannot get it to reproduce the behavior and it only exports visible columns and I was positive about the code.  But thank you for the response.  Guess it is just one of those things...

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