Hellow pals,i have a radgrid whereby i have a hyperlink which brings an edit form when clicked .The window cannot open up and am stuck how to do it,Here is the code with the Javascript code
Script
function RowDblClick(sender, eventArgs)
{
window.radopen("UpdateIP.aspx", "Radwindow1");
function showUpdateIP()
{
var update = radopen("UpdateIP.aspx", "RadWindow1");
}
Below is the code behind which i have placed in the page load
foreach (GridDataItem item in RadGridNew.Items)
{
HyperLink editLink = (HyperLink)item.FindControl("EditLink");
editLink.Attributes["href"] = "javascript:void(0);";
editLink.Attributes["OnClientClick"] = String.Format("return ShowUpdateIP('{0}','{1}');", item.GetDataKeyValue("CustomerNumber"), item.ItemIndex);
}
(This is the template column link below<telerik:GridTemplateColumn UniqueName="TemplateEditColumn">
<ItemTemplate>
<asp:HyperLink ID="EditLink" runat="server" Text="editIp"></asp:HyperLink>
</ItemTemplate>
</telerik:GridTemplateColumn>)
Am trying to implement this from teleriks sample but i dont know why when i click the edit Hyperlink It cannot bring up the page to update.Here is the link for telerik
http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandwindow/defaultcs.aspx?product=window
Someone show tell me the problem with my code.Thanks
Mark as answer if satisfied