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

RadWindow Outside Parent

1 Answer 178 Views
Window
This is a migrated thread and some comments may be shown as answers.
Nathan
Top achievements
Rank 2
Nathan asked on 15 Nov 2011, 06:38 PM
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

1 Answer, 1 is accepted

Sort by
0
Nathan
Top achievements
Rank 2
answered on 15 Nov 2011, 09:01 PM
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!
Tags
Window
Asked by
Nathan
Top achievements
Rank 2
Answers by
Nathan
Top achievements
Rank 2
Share this question
or