Initial behavior

2 posts, 0 answers
  1. Rahul Khinvasara
    Rahul Khinvasara avatar
    303 posts
    Member since:
    Aug 2007

    Posted 25 Jun 2009 Link to this post

    Hi,

    I am using Telerik Q1 2007 version .
    I have set the initial behavior = "maximize" for RAD window as well as RAD window manager..so that when window opened, it must open in maximized mode. But due to some issue, it's not opening in maximized mode. Rather it is opening with default size. It is showing Maximize button also but then I have maximize it manually.

    Here is the code -

     <radW:RadWindowManager ID="RadWindowManager1" runat="server"  Skin="Olive" MinimizeMode="MinimizeZone"
                 MinimizeZoneId="Divhorizotal" InitialBehavior="Maximize"  >                                             
                   <Windows>
                        <radW:RadWindow ID="RadWindowPI" runat="server"  MinimizeZoneId="Divhorizotal" InitialBehavior="Maximize"  />
                  </Windows>
    </radW:RadWindowManager>

    What is the problem in the code above that window is not opening correctly?

    Regards

    Rahul
  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 25 Jun 2009 Link to this post

    Hello Rahul,

    You are using RadWindow for ASP.NET. In that version of the control, the InitialBehavior property works only for windows that are opened from the server (VisibleOnPageLoad=true).
    If you want to open it from the client-side, I suggest using the client-side API.
    e.g.:

    <form id="form1" runat="server"
        <div style="width: 100%; height: 100px; border: 1px solid red" id="Divhorizotal"
            &nbsp;</div> 
        <radw:RadWindowManager ID="RadWindowManager1" runat="server" Skin="Olive" MinimizeMode="MinimizeZone" 
            MinimizeZoneId="Divhorizotal" InitialBehavior="Maximize"
            <Windows> 
                <radw:RadWindow ID="RadWindowPI" runat="server"  InitialBehavior="Maximize" /> 
            </Windows> 
        </radw:RadWindowManager> 
        <script type="text/javascript"
            function openWin() 
            { 
                var oWnd = radopen('http://www.google.com','RadWindowPI'); 
                oWnd.Maximize(); 
            } 
         
        </script> 
        <button onclick="openWin(); return false;"
            open RadWindow</button> 
    </form> 



    Sincerely yours,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top