RadWindow center

2 posts, 0 answers
  1. Daniela
    Daniela avatar
    12 posts
    Member since:
    Aug 2010

    Posted 08 Nov 2010 Link to this post

    I would like to center the window. Can I do that may be in the code?
    Maybe there is a center method ... RadWindowPopup.CenterMethode()?

    <telerik:RadWindowManager ID="RadWindowManagerPopup" runat="server">
      <Windows>
        <telerik:RadWindow ID="RadWindowPopup" VisibleOnPageLoad="true" EnableShadow="true" Behaviors="Close, Move" AutoSize="true" runat="server" >
          <ContentTemplate>
            <div class="popup">
              <div class="popup_l">
               <div ID="PopupIcon" runat="server"></div>
              </div>
              <div class="popup_r">
                <asp:Literal ID="UserMessage" runat="server"></asp:Literal>
              </div>
              <div class="clear popup_button">
                <asp:Button ID="Button" runat="server" Text="OK" />
              </div>
            </div>
          </ContentTemplate>
        </telerik:RadWindow>
      </Windows>
    </telerik:RadWindowManager>

    Can you please give me a hint how I can do that.
    And often in using CSS with me that would like a method best.


    Regards Dani
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 09 Nov 2010 Link to this post

    Hello,


    Call the center() client side method of RadWindow client object to center the window.
    RadWindow Methods

    And, for relocating the RadWindow from code, set the Top and Left properties accordingly.


    -Shinu.
Back to Top