NUTSHELL
In an Export to Excel, I want a column that contains a network folder location to be a hyperlink to that location.
DETAIL
I have a grid of many columns, one of which is hidden and contains a network file location. The field is displayed in when Export to Excel, but it is only a text field. I would like this to be a hyperlink so the user could click it which would open the network location specified in that field.
SAMPLE FIELD DATA
\\c-fs\vol2\Proposal\2014\a9873 - NYC - GSF – Brockport, NY
EXISTING CODE
I am programming in MS Visual Studio 2012.
I am using Telerik UI for ASP.NET AJAX, v.2014.1.225.45
In an Export to Excel, I want a column that contains a network folder location to be a hyperlink to that location.
DETAIL
I have a grid of many columns, one of which is hidden and contains a network file location. The field is displayed in when Export to Excel, but it is only a text field. I would like this to be a hyperlink so the user could click it which would open the network location specified in that field.
SAMPLE FIELD DATA
\\c-fs\vol2\Proposal\2014\a9873 - NYC - GSF – Brockport, NY
EXISTING CODE
Protected Sub btnExport_Click(ByVal sender As Object, ByVal e As EventArgs) Me.RadGrid1.MasterTableView.GetColumn("Location").Display = True 'This field contains the network location Me.RadGrid1.MasterTableView.GetColumn("Proposal_NotIssued").Display = True Me.RadGrid1.MasterTableView.GetColumn("Proposal_NotIssuedReason").Display = True Me.RadGrid1.MasterTableView.GetColumn("Proposal_Qualification").Display = True Me.RadGrid1.MasterTableView.GetColumn("Proposal_EstimatedProjectArea").Display = True Me.RadGrid1.MasterTableView.GetColumn("Proposal_EstimatedConstructionCost").Display = True Me.RadGrid1.MasterTableView.GetColumn("Proposal_WinningProbabilityPct").Display = True Me.RadGrid1.MasterTableView.GetColumn("Proposal_DateGranted").Display = True Me.RadGrid1.MasterTableView.GetColumn("Proposal_ProjectID").Display = True Me.RadGrid1.MasterTableView.GetColumn("Proposal_Comments").Display = True For Each item As GridDataItem In Me.RadGrid1.Items If item.Selected = False Then item.Visible = False End If Next Me.RadGrid1.Rebind() Me.RadGrid1.ExportSettings.ExportOnlyData = True Me.RadGrid1.ExportSettings.OpenInNewWindow = True Me.RadGrid1.ExportSettings.FileName = "Selected Proposals " & Format(Now, "yyyy-MM-dd-h-mm-ss") 'Me.RadGrid1.ExportSettings.IgnorePaging = True Me.RadGrid1.ExportSettings.UseItemStyles = True Me.RadGrid1.MasterTableView.ExportToExcel()End SubI am programming in MS Visual Studio 2012.
I am using Telerik UI for ASP.NET AJAX, v.2014.1.225.45