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

[Solved] GridHyperLinkColumn won't export to CSV

2 Answers 114 Views
Grid
This is a migrated thread and some comments may be shown as answers.
luisfernandoCR
Top achievements
Rank 1
luisfernandoCR asked on 15 Dec 2009, 10:36 PM
Hi, I am using Q2 2009, using a Radgrid, I have a few GridHyperLinkColumn's, they export fine to PDF and Excel, but usung ExportToCSV() simply returns an empty field on those columns. I have ExportOnlyData set to true and in order to be able to use these columns I had to do the trick for the CSV depicted here , which is kind of an old post and it reads that this problem had already been addressed, am I missing something?

Thanks
Luis



2 Answers, 1 is accepted

Sort by
0
Accepted
Daniel
Telerik team
answered on 16 Dec 2009, 11:58 AM
Hello Luis,

ExportOnlyData property works slightly different for CSV. Because of the fact that this format is text-based, it doesn't support controls by design. In this context ExportOnlyData works more strictly (compared to the other formats) - it removes all controls, including DataBoundLiteralControl (which is generated automatically for binding expressions).
I believe that ExportOnlyData="false" is an appropriate setting for most of the scenarios when it comes to CSV export.

Let me know if you need more information.

Best regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
luisfernandoCR
Top achievements
Rank 1
answered on 16 Dec 2009, 02:55 PM
Thank you Daniel, that works perfectly!!
Tags
Grid
Asked by
luisfernandoCR
Top achievements
Rank 1
Answers by
Daniel
Telerik team
luisfernandoCR
Top achievements
Rank 1
Share this question
or