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

Different sizes using the same RadWindow

1 Answer 71 Views
Window
This is a migrated thread and some comments may be shown as answers.
Jorge A Perlas
Top achievements
Rank 1
Jorge A Perlas asked on 28 Aug 2009, 06:47 PM

Good afternoon!

I have a page that opens many pop-ups with different sizes from a RadWindow, but when I close the first one, the next opened pop-up gets the same size of the last one until it's completely loaded, you can see the code below:

Origin page code:

        <telerik:RadWindowManager ID="RadWindowManager1" runat="server" Skin="Office2007"
            ShowContentDuringLoad="false" VisibleStatusbar="false" ReloadOnShow="true" Behavior="None"
            Modal="True" Style="z-index: 90000;">
            <windows>
                <telerik:RadWindow runat="server" ID="RadWindow1" Width="10" Height="10" Modal="true"
                    OnClientClose="OnClientClose" Behavior="Move" />
            </windows>
        </telerik:RadWindowManager>

        function openWin(tela) {
                    var menu = $find('RadMenu1');
                    menu.close;
                    $find('Timer1')._stopTimer();
                    var oManager = GetRadWindowManager();
                    oManager.open(tela, "RadWindow1");
                }

Code to open up the RadWindow:

        function GetRadWindow() {
            var oWindow = null;
            if (window.radWindow) oWindow = window.radWindow;
            else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
            return oWindow;
        }
        function Entrar() {
            GetRadWindow().setSize(200, 200);
        }

Thanks in advance!

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 31 Aug 2009, 07:30 AM
Hi Jorge,

The GetRadWindow() function is used to get a reference to the RadWindow wrapper from within a content page - it should not be used on the parent page where the RadWindow actually is.
I also noticed that you have set very small width and height values - 10 pixels will not be sufficient even to show the titlebar correctly.

I hope this helps. If you still experience problems, please open a support ticket and send me a small sample project where I can have a better view over your exact setup and logic.


Regards,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Window
Asked by
Jorge A Perlas
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or