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

RadWindow inside a RadWindow

1 Answer 126 Views
Window
This is a migrated thread and some comments may be shown as answers.
Jure
Top achievements
Rank 1
Jure asked on 13 Jan 2011, 03:15 PM
Hey!

I have a RadWindow sized 800*600, inside of it I have a button that opens a new RadWindow, I want the new window to be maximized over the whole screen not just the 800*600 parent window is that possible?

This is how I am currently doing it.

<telerik:RadWindowManager KeepInScreenBounds="true" ID="rwm" Width="700" Height="600" Modal="true" ShowContentDuringLoad="false" ReloadOnShow="true"
                    VisibleStatusbar="false" Behaviors="Close,Reload" runat="server" EnableShadow="true">
                    <Windows>
                        <telerik:RadWindow ID="rwMax" runat="server" OnClientShow = "maximizeRadWindow" ShowOnTopWhenMaximized="true" />
                    </Windows>
</telerik:RadWindowManager>

I have a button that onclick calls OpenWindow.

<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
    <script type="text/javascript">
 
        function OpenWindow(url){
            var pagePath = '<%= Page.ResolveUrl("~") %>';
            window.radopen(pagePath + url, "rwMax");
        }
 
        function maximizeRadWindow(sender, e) {
            sender.maximize();
        }
 
    </script>
</telerik:RadCodeBlock>

Sincerely, Jure

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 14 Jan 2011, 12:11 PM
Hello Jure,


You need to use the current RadWindow's parent window as the parent of the new window(inner window). Which means both window having same parent page(main page).
The technique is described here:
Opening a RadWindow from Within a RadWindow


Thanks,
Princy.
Tags
Window
Asked by
Jure
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or