Issue with opening RadWindow Inside another RadWindow

5 posts, 0 answers
  1. Meenakshi Nagalingam
    Meenakshi Nagalingam avatar
    53 posts
    Member since:
    Aug 2009

    Posted 15 Sep 2009 Link to this post

    Hi,

    We are using radwindow control of Prometheus Q2 2009 version.  We have a requirement display some data in the radwindow when a button of the page is clicked. In the radwindow we can save and edit some data. While saving if mandatory fields are not entered a alert should be displayed to the user. For displaying the alert we use radwindow.

    The problem is, when opening a radwindow from another radwindow, the popup is not getting displayed.

    I tried with code below, which display the rad window and but not in the front of the first opened radwindow.

            var parentPage = GetRadWindow().BrowserWindow;
            var parentRadWindowManager = parentPage.GetRadWindowManager();
            var wnd = parentRadWindowManager.open("../../Shared/AlertPopup.aspx", "radAlertWindow");
            wnd.setSize (300, 150);
            wnd.SetModal(true);
            return false;

    Is there any option to make the radwindow open from another radwindow and display it inside the first opened radwindow. (as "Modal" window).

    Thanks
  2. Casey
    Casey avatar
    299 posts
    Member since:
    Jul 2009

    Posted 15 Sep 2009 Link to this post

    Hello,

    If you want to open the second RadWindow inside the first RadWindow you should be able to do so by modifying your code to the below. You will have to have the "radAlertWindow" defined on the first RadWindow's aspx page for the below to work.

    var wnd = radopen("../../Shared/AlertPopup.aspx""radAlertWindow");     
            wnd.setSize (300, 150);     
            wnd.SetModal(true);     
            return false;   
     

    Hope this helps,
    Casey
  3. Meenakshi Nagalingam
    Meenakshi Nagalingam avatar
    53 posts
    Member since:
    Aug 2009

    Posted 15 Sep 2009 Link to this post

    Hi Casey,

    Thanks for the reply.
    As you suggested, I have the "radAlertWindow" defined on the first RadWindow's aspx page and modified the code as you provided.
    But now the rad window is not at all opening (even at the back of the first radwindow).

    Do we need to add anymore settings to make it work?

    Thanks
  4. Casey
    Casey avatar
    299 posts
    Member since:
    Jul 2009

    Posted 15 Sep 2009 Link to this post

    That is odd that it will not work for you, I use that code on one of my pages to open a RadWindow. Anyway, the below link shows different ways to open a RadWindow within another RadWindow.

    Hope this helps,
    Casey

    http://www.telerik.com/help/aspnet-ajax/window_programmingopening.html 
  5. Meenakshi Nagalingam
    Meenakshi Nagalingam avatar
    53 posts
    Member since:
    Aug 2009

    Posted 15 Sep 2009 Link to this post

    Hi Casey,

    The issue is with the button used to open the alert window, the button is not added to the ajaxproxy and it created the issue.
    When we added the button to the ajax proxy the issue is solved.

    Thanks for the help
Back to Top