Home > Forums > ASP.NET >

popup not showing on "Onclick"

Posted by Jopito under ASP.NET on 10/30/2013 | Points: 10 | Views : 767 | Status : [Member] | Replies : 1
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

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">
<asp:HyperLink ID="EditLink" runat="server" Text="editIp"></asp:HyperLink>

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

Someone show tell me the problem with my code.Thanks

Mark as answer if satisfied


Posted by: Bandi on: 10/31/2013 [Member] [MVP] Diamond | Points: 25

Mark This Response as Answer

Jopito, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response