Miss-align the radWindow

2 posts, 0 answers
  1. Hock Sing Ting
    Hock Sing Ting avatar
    3 posts
    Member since:
    Feb 2010

    Posted 26 Aug 2013 Link to this post


    Vesion : Q2 2012 SP2
    Browser : IE7
    OS : XP

    We have a link which will open a new radWindow.
    Most of the time, the radWindow is open normally which is in the center of the browser.
    But, few times, it is miss-align, you can refer to the screen capture attched.
    Below are the script we open the radWindow.

     function openWin(xmlName, ID1, ID2) {
                var oWnd = radopen("filename", "RadWindow2");
                oWnd.setSize(980, 580);

    Do you have any idea why it cause the miss-align?

  2. Marin Bratanov
    Marin Bratanov avatar
    5454 posts

    Posted 28 Aug 2013 Link to this post


    There shouldn't be an issue with the popup's position, yet for small screen sizes that are insufficient to contain it there may be some issues. What I can suggest that you try is the following:
    - avoid calling show() again
    - move the popup to (0,0) first before resizing to let it have as much space as possible
    - use the current API of the control
    - set its KeepInScreenBounds property to true to prevent its titlebar from going out of the viewport
    - make sure there aren't JavaScript errors on the page
    - try the latest version, which is one year newer

    <telerik:RadWindowManager ID="RadWindowManager1" runat="server" KeepInScreenBounds="true">
    <asp:Button ID="Button1" Text="open the popup" OnClientClick="openWin(); return false;" runat="server" />
    <script type="text/javascript">
        function openWin(xmlName, ID1, ID2)
            var oWnd = radopen("filename", "RadWindow2");
            oWnd.moveTo(0, 0);
            oWnd.setSize(980, 580);

    Marin Bratanov
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Back to Top