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

The New RadWindow diplay at the background of the open one

3 Answers 109 Views
Window
This is a migrated thread and some comments may be shown as answers.
Hind
Top achievements
Rank 1
Hind asked on 12 Sep 2011, 10:38 AM
Hello,

I have a problem when i try to open a new window from an open one.  The new window is dispayed at the layer behind the old one, while i want to show it in the front of the old window.
 You can find bellow code I used :

<telerik:RadWindowManager ID="RadWindowManager1" runat="server" ShowContentDuringLoad="false" Modal="false" Behavior="Resize, Move, Close, Maximize, Minimize" Skin="WebBlue">
                                                        <Windows>
 <telerik:RadWindow ID="radDocWindow" runat="server" OnClientClose="refreshGed" DestroyOnClose="false" Behavior="Move, Close" AutoSize="true" Left="5px" Top="5px" />
.
.
.
.

            var URL = "<%=this.ApplicationPath%>ManageGed/EditDoc.aspx?type=add&business="+business.value+"&task="+task.value;
            if ( typeof GetRadWindow==='function' )
            {
                var oBrowserWnd = GetRadWindow();
            
                if (oBrowserWnd)
                {
                    var wm = oBrowserWnd.GetWindowManager();
                    var oWindow = wm.Open(URL,"radDocWindow");
                }
                else
                    var oWindow = window.radopen(URL,"radDocWindow");
            }
            else
                var oWindow = window.radopen(URL,"radDocWindow");

Is there a indispensable parameter to set for this goal?

Thank You for your suggestions!




                                                            

3 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 12 Sep 2011, 02:32 PM
Hello Hind,

Try setting the InitialBehaviour of the Radwindow to Maximize.

Thanks,
Princy
0
Hind
Top achievements
Rank 1
answered on 12 Sep 2011, 04:36 PM
Hello Princy,
I Tried to set the InitialBehaviors of the new Window to "Maximize". Will, it Shown in the first Plan of the screen but its take in width the size of all the screen, and i cannot no more access to the old open Window.

Thank You for more help,

Hind

0
Marin Bratanov
Telerik team
answered on 13 Sep 2011, 04:04 PM
Hello Hind,

You can try opening the RadWindow with a small timeout:
setTimeout(function(){
    oBrowserWindow.radopen(null, null);
}, 0);

Please note that the oBrowserWindow should be the main page's window object, i.e.:
oBrowserWindow = GetRadWindow().BrowserWindow;

as in your current code it is the window object of the iframe where the RadWindow's content page is loaded.

The general approach is described in this help article.
Regards,
Marin
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Window
Asked by
Hind
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Hind
Top achievements
Rank 1
Marin Bratanov
Telerik team
Share this question
or