This is a migrated thread and some comments may be shown as answers.

Issue with opening RadWindow Inside another RadWindow

4 Answers 160 Views
Window
This is a migrated thread and some comments may be shown as answers.
Meenakshi Nagalingam
Top achievements
Rank 1
Meenakshi Nagalingam asked on 15 Sep 2009, 12:52 PM
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

4 Answers, 1 is accepted

Sort by
0
Casey
Top achievements
Rank 1
answered on 15 Sep 2009, 01:12 PM
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
0
Meenakshi Nagalingam
Top achievements
Rank 1
answered on 15 Sep 2009, 02:10 PM
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
0
Casey
Top achievements
Rank 1
answered on 15 Sep 2009, 02:38 PM
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 
0
Meenakshi Nagalingam
Top achievements
Rank 1
answered on 15 Sep 2009, 03:07 PM
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
Tags
Window
Asked by
Meenakshi Nagalingam
Top achievements
Rank 1
Answers by
Casey
Top achievements
Rank 1
Meenakshi Nagalingam
Top achievements
Rank 1
Share this question
or