Hello,
I have a RadGrid for which I have enabled exporting to Excel using the XSLX format. The export works very well except the export removes hyperlinks from the grid and replaces them with plain text. I have a requirement to include in the resulting XSLX file the hyperlink that appears in the grid in a GridHyperlinkColumn. I have tried altering the ExportOnlyData value in the grid's export settings, but that causes the data in the GridHyperlinkColumn to not appear at all. Here is a simplified grid. Thank you for your advice on whether XSLX exports can include hyperlinks.
<
telerik:RadGrid
ID
=
"rgInstSearchResults"
runat
=
"server"
RenderMode
=
"Lightweight"
DataSourceID
=
"odsInstSearch"
AutoGenerateColumns
=
"false"
Skin
=
"Bootstrap"
ShowStatusBar
=
"true"
AllowMultiRowSelection
=
"true"
Width
=
"95%"
GridLines
=
"Both"
AllowFilteringByColumn
=
"false"
>
<
ClientSettings
>
<
Selecting
AllowRowSelect
=
"true"
UseClientSelectColumnOnly
=
"true"
/>
</
ClientSettings
>
<
ExportSettings
ExportOnlyData
=
"true"
OpenInNewWindow
=
"true"
FileName
=
"InstitutionSearchResults"
IgnorePaging
=
"true"
>
<
Excel
DefaultCellAlignment
=
"Left"
Format
=
"Xlsx"
/>
<
Word
Format
=
"Html"
/>
</
ExportSettings
>
<
MasterTableView
Name
=
"mtvInstSearchResults"
DataSourceID
=
"odsInstSearch"
DataKeyNames
=
"InstitutionID"
CommandItemDisplay
=
"Top"
AllowPaging
=
"true"
AllowSorting
=
"true"
PageSize
=
"50"
AllowMultiColumnSorting
=
"true"
AllowAutomaticDeletes
=
"true"
ShowFooter
=
"True"
AllowAutomaticInserts
=
"False"
AllowAutomaticUpdates
=
"False"
>
<
CommandItemStyle
BackColor
=
"#dae0ed"
Font-Bold
=
"true"
HorizontalAlign
=
"Right"
/>
<
CommandItemSettings
ShowExportToExcelButton
=
"true"
ShowAddNewRecordButton
=
"false"
ShowRefreshButton
=
"true"
ShowExportToWordButton
=
"true"
/>
<
PagerStyle
AlwaysVisible
=
"true"
PageSizes
=
"25,50,100,500"
/>
<
Columns
>
<
telerik:GridClientSelectColumn
UniqueName
=
"ClientSelectColumn"
Reorderable
=
"False"
Exportable
=
"false"
/>
<
telerik:GridHyperLinkColumn
UniqueName
=
"InstitutionID"
HeaderText
=
"ID"
DataNavigateUrlFields
=
"InstitutionID"
Reorderable
=
"False"
DataNavigateUrlFormatString
=
"ViewInstitution.aspx?InstitutionID={0}"
DataTextField
=
"InstitutionID"
Target
=
"_blank"
/>
</
Columns
>
</
MasterTableView
>
</
telerik:RadGrid
>