Search
Winners

Win Prizes

Social Presence
Twitter Twitter LinkedIn YouTube Google

Like us on Facebook
Advertisements
Top Forums Author
Sat, 25-Oct-2014 Authors
Raja_89
20
Shoab.Shah
10
Jayakumars
10
All Time Authors
Jayakumars
4190
Karthikanbarasan
3455
Chvrsri
3140

Latest members | More ...


(Statistics delayed by 5 minutes)
 Forum Post

popup not showing on "Onclick"

Jopito
Posted by Jopito under ASP.NET on 10/30/2013 10:01:36 AM | Points: 10 | Views : 560 | 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

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

Refer
http://www.telerik.com/community/forums/aspnet-ajax/grid/open-popup-window-on-radgrid-linkbutton-click.aspx

If it helps/directs you towards the solution,Mark This Response as Answer link
--
Chandu

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

Login to post response


Found interesting? Add this to: