Problem with modal windows that are larger than browser window

3 posts, 0 answers
  1. TechSavvySam
    TechSavvySam avatar
    38 posts
    Member since:
    Jul 2009

    Posted 31 May 2011 Link to this post

    Is there any plan to fix the display of modal windows that are larger than the browser window so they can automatically be positioned at the top left of the page instead of the middle?  When they are positioned in the middle, you have no way to get to the modal window's toolbar to drag it to where you can see it because the top of the modal window is beyond the top scroll area for the browser window.

    see attached image--note that I made the browser window a bit bigger after the modal popped up so you could actually see where it is.

  2. Marin Bratanov
    Marin Bratanov avatar
    3907 posts

    Posted 01 Jun 2011 Link to this post

    Hi Sam,

    This feature is already available. Please set the KeepInScreenBounds property to true. You can observe its effect with the following page:

    <telerik:RadWindow runat="server" ID="RadWindow1" Modal="true" VisibleOnPageLoad="true" Width="2000" Height="2000" KeepInScreenBounds="true"></telerik:RadWindow>

    Without the property you will not be able to see the titlebar, with it the window will be positioned to the top left corner.

    You can also test its functionality by making the window even bigger some time after it is loaded:

    function pageLoad()
        var oWnd = $find("<%=RadWindow1.ClientID %>");
        setTimeout(function ()
        }, 10000);

    With the property the window will not move, just the scrollbars of the browser window will extend.

    I hope this helps you achieve the desired functionality.

    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  3. TechSavvySam
    TechSavvySam avatar
    38 posts
    Member since:
    Jul 2009

    Posted 01 Jun 2011 Link to this post

    Thanks.  That fixed it.  For some reason the description of that property didn't jump out at me as the solution.  When I read it now, it does...
Back to Top