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


    I am using Telerik Q1 2007 version .
    I have set the initial behavior = "maximize" for RAD window as well as RAD window 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"  >                                             
                        <radW:RadWindow ID="RadWindowPI" runat="server"  MinimizeZoneId="Divhorizotal" InitialBehavior="Maximize"  />

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


  2. Georgi Tunev
    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.

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

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