I am using Telerik Grid which adds hyperlink controls on ItemDataBound. Below code used to work with Telerik.Web.UI(2012.2.912.35).
When I upgraded it to 2014.1.225.35 or 2014.1.403.35 the links lose hyperlink url.
When I upgraded it to 2014.1.225.35 or 2014.1.403.35 the links lose hyperlink url.
protected void RadGrid_ItemDataBound(object sender, GridItemEventArgs e)
{
try
{
if (e.Item is GridDataItem)
{
GridDataItem item = (GridDataItem)e.Item;
foreach (string hlc in hyperlinksColumns)
{
HyperLink link = new HyperLink();
link.Text = item[hlc].Text;
link.NavigateUrl = item[hlc + "_URL"].Text; //This Does not work
link.NavigateUrl = "javascript:callFunctionA('parameter1','parameter2');"; //This works. Same text is present in item[hlc + "_URL"].Text
item[hlc].Controls.Add(link);
}
}
}
catch (Exception ex)
{
Utils.WriteLog(ex);
}
}