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

Grid export to excel non displayed columns

2 Answers 9 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Enrico
Top achievements
Rank 1
Enrico asked on 23 Sep 2015, 07:42 PM

Hi,

I'd like to export to Excel all the columns defined in a grid datasource (the dataItem has all the properties I need) but not displayed in the grid itself.

How can I achieve this?

Thanks,

Enrico

2 Answers, 1 is accepted

Sort by
0
Accepted
Kostadin
Telerik team
answered on 25 Sep 2015, 11:48 AM
Hi Enrico,

A possible solution is to define all column and hide the one which you do not want to be visible and when export the grid to show them. You can examine this forum thread which describes how to show them during export. Another solution is to create the export structure directly from the datasource. More information regards this approach could be found in the following help article.

Regards,
Kostadin
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Enrico
Top achievements
Rank 1
answered on 29 Sep 2015, 08:10 PM

Hi,

the second option It feels much more clean to me. I'll try to implement it! Thanks for pointing it out.

BR,

Enrico

Tags
Grid
Asked by
Enrico
Top achievements
Rank 1
Answers by
Kostadin
Telerik team
Enrico
Top achievements
Rank 1
Share this question
or