This is a migrated thread and some comments may be shown as answers.

RadWindow center

1 Answer 339 Views
Window
This is a migrated thread and some comments may be shown as answers.
Daniela
Top achievements
Rank 1
Daniela asked on 08 Nov 2010, 09:30 PM
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

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 09 Nov 2010, 10:54 AM
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.
Tags
Window
Asked by
Daniela
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or