Test your technical skills online, appear in Virtual Interview and be ready for job!
Twitter Twitter LinkedIn YouTube Google
Be Interview ready ! | Search
Make friends on DotNetFunda.com and expand your network!
Winners

Win Prizes

Announcements
Like us on Facebook
Sponsor
Top Forums Author
Wed, 23-Apr-2014 Authors
Allemahesh
10
Brierust
10
Klbaiju
10
All Time Authors
Jayakumars
3930
Karthikanbarasan
3455
Chvrsri
3140

Latest members | More ...


(Statistics delayed by 5 minutes)

popup not showing on "Onclick"

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

Reply | Reply with Attachment

=> Scroll below for responses


Comments or Responses

Posted by: Bandi on: 10/31/2013 [Member] Silver | 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.

Comments / Responses
Select text & click toolbar to format. Formatting appears in viewmode only. HTML Tags are not allowed.
Bold Italic Underline Paragraph Title Code  Link 
 Wait ... Processing ..... please wait.

Found interesting? Add this to: