Is there a way to place a hyperlink in the header column of a Radgrid View.
Some of my columns contain a multiple sets of abbreviations... What makes this worse is that each company (which is an attribute of the page) have different abbreviations. What I wanted to do was make a column header that can be clicked that does the sorting with a question mark on the end that hyperlinks to an information page that gives the specific information about the abbreviations.
I tried to do this similar to how it would be done with an ordinary gridview:
<telerik:GridBoundColumn DataField="Availability"
FilterControlAltText="Filter Availability column" FilterControlWidth="20px"
HeaderText="Status<a href='~/Reports/CodeList.aspx?coid=<%#Session("CoID")%>&property=status' target='_blank'>?</a>";
SortExpression="Availability" UniqueName="Availability">
</telerik:GridBoundColumn>
The error that I get is:
Parser Error Message: Telerik.Web.UI.GridColumnCollection must have items of type 'Telerik.Web.UI.GridColumn'. 'a' is of type 'System.Web.UI.HtmlControls.HtmlAnchor'.
Is there anyway to actually place a hyperlink in the column header?
Some of my columns contain a multiple sets of abbreviations... What makes this worse is that each company (which is an attribute of the page) have different abbreviations. What I wanted to do was make a column header that can be clicked that does the sorting with a question mark on the end that hyperlinks to an information page that gives the specific information about the abbreviations.
I tried to do this similar to how it would be done with an ordinary gridview:
<telerik:GridBoundColumn DataField="Availability"
FilterControlAltText="Filter Availability column" FilterControlWidth="20px"
HeaderText="Status<a href='~/Reports/CodeList.aspx?coid=<%#Session("CoID")%>&property=status' target='_blank'>?</a>";
SortExpression="Availability" UniqueName="Availability">
</telerik:GridBoundColumn>
The error that I get is:
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.Parser Error Message: Telerik.Web.UI.GridColumnCollection must have items of type 'Telerik.Web.UI.GridColumn'. 'a' is of type 'System.Web.UI.HtmlControls.HtmlAnchor'.
Is there anyway to actually place a hyperlink in the column header?