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

[Solved] Non Modal child radwindow inside parent radwindow

1 Answer 221 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Raka
Top achievements
Rank 1
Raka asked on 17 May 2013, 06:04 PM
Hi

We have a RadWindow with few controls in it.  On a ButtonClientClick event we want to (in Javascript) open a child window that is
1) a radWindow
2) is non-modal to allow focus on parent window whild child window is visible and is on top
3) allow the child window to be dragged outside the parent window.

I can only achieve either 1) and 2) OR  3) but not all.
====================================================================================================

w = window.showModelessDialog(

 

url, "NewWindow", "status:true; dialogWidth: 380px; dialogHeight: 200px;", '');
-- gives me a non-modal window but cannot be dragged outside the parent window.

 

====================================================================================================

====================================================================================================

w = GetRadWindow().BrowserWindow.radopen(url, "NewWindow");
-- creates a non-RadWindow which is modal but can be dragged outside the parent.

How do I create a child window that has all 3 properties?

Thanks
Raka

 

====================================================================================================


1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 21 May 2013, 08:25 AM
Hi Raka,

The following help article explains how to open such a RadWindow: http://www.telerik.com/help/aspnet-ajax/window-programming-opening-from-within-dialog.html. The radopen() function returns a reference to the newly opened popup, as explained here: http://www.telerik.com/help/aspnet-ajax/window-programming-opening.html so you can use the control's client-side API (http://www.telerik.com/help/aspnet-ajax/window-programming-radwindow-methods.html) to modify it, in this case - set_modal(false). The modality is most likely inherited from the RadWindowManager on the main page. You can either toggle it with JavaScript for this concrete instance, or remove the Modal="true" setting from that manager if you do not need it. Note that it may change the behavior of the rest of that page.


All the best,
Marin Bratanov
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.
Tags
General Discussions
Asked by
Raka
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or