The New RadWindow diplay at the background of the open one

4 posts, 1 answers
  1. Hind
    Hind avatar
    20 posts
    Member since:
    Jun 2011

    Posted 12 Sep 2011 Link to this post

    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!




                                                                
  2. Answer
    Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 12 Sep 2011 Link to this post

    Hello Hind,

    Try setting the InitialBehaviour of the Radwindow to Maximize.

    Thanks,
    Princy
  3. Hind
    Hind avatar
    20 posts
    Member since:
    Jun 2011

    Posted 12 Sep 2011 Link to this post

    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

  4. Marin Bratanov
    Admin
    Marin Bratanov avatar
    4630 posts

    Posted 13 Sep 2011 Link to this post

    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.
Back to Top