Query on Radwindow Pop-up

2 posts, 0 answers
  1. Vaibhav
    Vaibhav avatar
    1 posts
    Member since:
    May 2012

    Posted 10 May 2012 Link to this post

    I am stuck in a problem with a Radwindow pop-up and need your help.

    On Rad Window, when I click on a button, a new pop -up opens and hides behind the previous Radwindow.  In this
     case the javascript code written below


     returns incorrect parent.:




    var parentPane = parent.getContentPane();




    var parentForm = parentPane.getExtContentElement().contentWindow.document;




    var TextBox = parentForm.getElementById(TextBoxID);



    Ideally, the parent should be the Rad window from which the new  pop-up was opened but here it is showing "Home.aspx" as its
     parent. I tried window.opener() and other probable workarounds but none of them worked.

  2. Marin Bratanov
    Marin Bratanov avatar
    5315 posts

    Posted 14 May 2012 Link to this post


    Have you examined this article that is closely related to your scenario: http://www.telerik.com/help/aspnet-ajax/window-programming-opening-from-within-dialog.html. Note that the BrowserWindow property of the RadWindow instance returns the window object of its parent frame and how a timeout is needed when showing the second RadWindow to make sure it stays on top, properly set as active. Also, when working with iframes the parent frame is referenced via the parent property of the current window object - e.g. window.parent.radopen().

    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top