RadWindow Outside Parent

2 posts, 0 answers
  1. Nathan
    Nathan avatar
    52 posts
    Member since:
    Apr 2011

    Posted 15 Nov 2011 Link to this post

    Hello,

    I'm using the RadMenu to open the RadWindow. I'm setting the onclick to a javascript function when the menu item should open a new page, if it should navigate to a different page I use the NavigationURL. The server side code dynamically adds the windows to the RadWindowManager based on my Menu.

    I would like one of my pages to appear as a modal dialog which dims the parent window (this works great), but I would like another menu item to open a new window that is outside of the parent window. Is this possible? All of the examples of the RadWindow I've seen only allow the window to be inside the page window - is it possible to spawn a new "blank" window?

    Server Side (Dynamically Creating Windows):
    RadWindow rw = new RadWindow();
    rw.ID = "Window" + menuItem.Uid;
    [excluded settings here...]
    RadWindowManager1.Windows.Add(rw);
    newMenuItem.Attributes.Add("onclick", "OpenWindow('"+ menuItem.Uid + "');");

    <script type="text/javascript">
        function OpenWindow(menuId) {
            radopen(null,'Window'+menuId);
            return false;    
        }
    </script>

    <telerik:RadMenu ID="mnuRoot" runat="server" Skin="CustomMenu" EnableEmbeddedSkins="false" Width="100%">
    </telerik:RadMenu>

    <telerik:RadWindowManager ID="RadWindowManager1" runat="server" Skin="Default">   
    </telerik:RadWindowManager> 

    Thanks,
    Nathan
  2. Nathan
    Nathan avatar
    52 posts
    Member since:
    Apr 2011

    Posted 15 Nov 2011 Link to this post

    I found out that the window can only be used inside of the browser window. I've changed my RadMenu to call "window.showModalDialog" and it's working just fine.


    Thanks!
Back to Top