Different sizes using the same RadWindow

2 posts, 0 answers
  1. Jorge A Perlas
    Jorge A Perlas avatar
    4 posts
    Member since:
    Jul 2012

    Posted 28 Aug 2009 Link to this post

    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;">
                    <telerik:RadWindow runat="server" ID="RadWindow1" Width="10" Height="10" Modal="true"
                        OnClientClose="OnClientClose" Behavior="Move" />

            function openWin(tela) {
                        var menu = $find('RadMenu1');
                        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!

  2. Georgi Tunev
    Georgi Tunev avatar
    7207 posts

    Posted 31 Aug 2009 Link to this post

    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.

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