No control over Radwindow Appearance

4 posts, 0 answers
  1. Stuart Watton
    Stuart Watton avatar
    18 posts
    Member since:
    Sep 2009

    Posted 27 Mar 2010 Link to this post

    Hi

    I am opening a radwindow with the radopen command and cannot figure out how to exercise control over the appearance of the resulting window. For instance, I am trying to hide the status bar.

    Here is the code

    <

     

    telerik:RadWindowManager ID="RadWindowManagerPartPicker" ShowContentDuringLoad="false" VisibleStatusbar="false"

     

     

    ReloadOnShow="true" runat="server" Skin="Vista" Opacity="50" KeepInScreenBounds="true" DestroyOnClose="true">

     

     

    <Windows>

     

     

    <telerik:RadWindow ID="PartsListWindow" runat="server" Behaviors="Close" OnClientClose="OnClientClose" VisibleStatusbar="false"

     

     

    NavigateUrl="../Editor.aspx" Skin="Vista">

     

     

    </telerik:RadWindow>

     

     

    </Windows>

     

     

    </telerik:RadWindowManager>

     

     

    <

     

    script type="text/javascript">

     

     

    //<![CDATA[

     

     

    function openWin() {

     

     

    var oWnd = radopen("Editor.aspx", "PartsListWindow");

     

    }

     

     

     

    //]]>

     

     

    </script>

     



    Whatever I try to do, I cannot get the Status bar not to appear. Can anyone help?

    Thanks in Advance
  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 29 Mar 2010 Link to this post

    Hello Stuart,

    I tried your code and everything is working as expected (see attached screenshot). If you still experience this problem, I suggest to open a support ticket and to send us a small sample project where it could be reproduced - we will check it right away and get back to you with a solution.


    Sincerely yours,
    Georgi Tunev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. Stuart Watton
    Stuart Watton avatar
    18 posts
    Member since:
    Sep 2009

    Posted 29 Mar 2010 Link to this post

    Georgi,

    I worked out what was happening here. The window was being generated from a user control which had a RadWindowManager in it and the User Control was in a Page that also had a RadWindowManager in it. I was minipulating the Window Manager in the User control but the Window itself seems to have picked up the window manager preferences from the one on the page.

    The solution in this circumstance was to remove the window manager from the page, but what happens when I have 2 User controls, both with window managers with different settings?

    Stuart
  4. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 29 Mar 2010 Link to this post

    Hi Stuart,

    This behavior is expected when you have more than RadWindowManagers on the page - I apologize for missing that scenario. By design radopen(), radalert, GetRadWindowManager(), etc. RadWindowManager's functions will always use the RadWindowManager that is first rendered on the page.
    That is why, in scenarios like yours, i.e. where you have multiple managers on page and you want to use specific one, we suggest to get a reference to that manager first and then call its method.
    e.g.
    function openWin() {
        var oWndMan = $find("<%= RadWindowManager1.ClientID %>");
        oWndMan.radopen("mySite", "myWindow");
    }


    All the best,
    Georgi Tunev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top