Hi,
I am trying to add a column to my grid where there is a link to another page. For this, I have been using the GridHyperLinkColumn which does the job, but now instead of the text "View details" which I previously had as a hyperlink, I would like to place an icon (the same for every row in the grid). I tried with the GridHyperLinkColumn but I don't think it supports images. For this, I can only see using GridButtonColumn, but how do I insert the link with this type of column? The link is using the result from a select to detect the id of the content in order to form the url:
<telerik:GridHyperLinkColumn DataNavigateUrlFormatString="/lms_bd/ContentDetails.aspx?content={0}" Target="_self" DataTextFormatString="my edit page" DataNavigateUrlFields="ContentID" UniqueName="ExternalEditLink" HeaderText="View Details" Text="View" >
</telerik:GridHyperLinkColumn>
In the .cs code of the ContentDetails.aspx page, the control literal1 receives the value passed in the url:
protected void Page_Load(object sender, EventArgs e)
{
string thisContent = Request.QueryString["content"].ToString();
Literal1.Text = thisContent;
}
I then use the following paramater in my select command:
<SelectParameters>
<asp:ControlParameter ControlID="Literal1" Name="content" PropertyName="Text" Type="String" />
</SelectParameters>
Does anyone have any suggestions?
Thanks!