Hi,
I'm porting some old code to Telerik and I'm having issues. This application has a grid and two of the columns contains hyperlinks that would execute java code to open a non-modal windows to present more details on the items with hyperliks
In the old code, this solved by a template like this:
<ItemTemplate>
<asp:HyperLink ID="hplnkCatalogDetails" runat="server" ToolTip='Click To View Details' Text='<%# Eval("ID") %>' NavigateUrl="<%#String.Format("javascript:void(window.showModalDialog('CatalogDetailsPopUp.aspx?id={0}','','dialogHeight:500px;dialogWidth:850px'));", Eval("ID")) %>" />
</ItemTemplate>
However this solution fails to execute if using this solution with Telerik GridTemplateColumn :
<telerik:GridTemplateColumn FilterControlAltText="Filter TemplateColumn column" HeaderText="Catalog" UniqueName="TemplateColumn" DataField="ID">
<ItemTemplate>
<asp:HyperLink ID="hplnkCatalogDetails2" runat="server" ToolTip='Click To View Details'
Text='<%# Eval("ID") %>' NavigateUrl="<%#String.Format(& quot;javascript:void(window.showModalDialog ('CatalogDetailsPopUp.aspx?id={0}','','dialogHeight:500px;dialogWidth:850px'));", Eval("ID")) %>" />
</ItemTemplate>
</telerik:GridTemplateColumn>
and this other approach does not work neither using GridHyperLinkColumn:
<telerik:GridHyperLinkColumn AllowSorting="False" DataTextField="ID" FilterControlAltText="Filter column column" HeaderText="Catalog" UniqueName="colID"
NavigateUrl= ""<%#String.Format(& quot;javascript:void(window.showModalDialog('CatalogDetailsPopUp.aspx?id={0}','','dialogHeight:500px;dialogWidth:850px'));", Eval("ID")) %>""
DataNavigateUrlFields="ID"
DataNavigateUrlFormatString="javascript:void(window.showModalDialog('CatalogDetailsPopUp.aspx?id={0}','','dialogHeight:500px;dialogWidth:850px'))" >
</telerik:GridHyperLinkColumn>
How should I address this?