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

[Solved] Missing asp:HyperLink in Export to Excel/PDF

2 Answers 280 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 04 Jun 2009, 07:12 PM
I have created a custom RadGrid class and added export buttons inside the CommandItemTemplate.  When I export to Excel/PDF the hyperlinks (value) do not show up.  I know setting ExportDataOnly="false" takes care this but my web pages crash when I set it to false.  Is there a solution to this?  Thanks,

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 05 Jun 2009, 04:01 AM
Hi Robert,

I guess you are trying to export GridHyperLinkColumn data.The GridHyperlinkColumn in Telerik RadGrid have Hyperlink in their cells. They are not considered as data, so while you export those hyperlinks will be stripped from the resulting Excel file. You may refer the following help article which explains how to export Hyperlink column data.
Exporting tips and tricks

Shinu
0
Robert
Top achievements
Rank 1
answered on 05 Jun 2009, 12:23 PM
That makes since but I need to be able to do a onClick event b/c it needs to open a popup window when the user clicks on it.  How can I make that happen.

Thanks for the help.
Tags
Grid
Asked by
Robert
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Robert
Top achievements
Rank 1
Share this question
or