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

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


Responses

Posted by: Bandi on: 10/31/2013 [Member] [MVP] Diamond | Points: 25
Refer
http://www.telerik.com/community/forums/aspnet-ajax/grid/open-popup-window-on-radgrid-linkbutton-click.aspx

Mark This Response as Answer
--
Chandu
http://www.dotnetfunda.com/images/dnfmvp.gif

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

Login to post response