I'm upgrading my ASP grid to a RadGrid and I have an issue with one of the columns.
On my web page, the user inputs a field for the title of their link, "sTitle" and the link itself, "sLink". When they press add, it inputs it to the grid.
This is the was the way the field worked before in ASP:
When you click the link of the title it will open a new page of whatever link the user put into the field for sLink.
I have tried to get this to work using Radgrid:
What do I need to do to get this working?
On my web page, the user inputs a field for the title of their link, "sTitle" and the link itself, "sLink". When they press add, it inputs it to the grid.
This is the was the way the field worked before in ASP:
<
asp:TemplateField
HeaderText
=
"Link"
SortExpression
=
"sLink"
>
<
ItemTemplate
>
<
asp:HyperLink
ID
=
"HyperLink1"
runat
=
"server"
NavigateUrl='<%# Eval("sLink") %>' Target="_blank"
Text='<%# Eval("sTitle") %>'></
asp:HyperLink
>
</
ItemTemplate
>
</
asp:TemplateField
>
When you click the link of the title it will open a new page of whatever link the user put into the field for sLink.
I have tried to get this to work using Radgrid:
<
telerik:GridTemplateColumn
DataField
=
"sLink"
HeaderText
=
"Link"
UniqueName
=
"sLink"
>
<
ItemTemplate
>
<
asp:LinkButton
id
=
"sLink"
runat
=
"server"
text='<%# Eval("sTitle") %>' CssClass="NoUnderLine"></
asp:LinkButton
>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
What do I need to do to get this working?