Window popup location on very long page

3 posts, 1 answers
  1. Michael
    Michael avatar
    16 posts
    Member since:
    Apr 2009

    Posted 10 Jun 2009 Link to this post

    I have a very long report that uses RadWindow popups to allow the user to edit data.  However, when the user is a ways down in the report and clicks on a button in the row in which they're looking to open the RadWindow, although the screen grays out, the popup opens above or below where the user is actually looking.  I am assuming the window is opening mid-way down/up the page, and if the user isn't at that point, they have to scroll to look for it.

    Is there a way to set the location of the RadWindow so that it is centered in the screen where they've opened it?

    Thanks!

    Michael
  2. Michael
    Michael avatar
    16 posts
    Member since:
    Apr 2009

    Posted 11 Jun 2009 Link to this post

    I guess it couldn't have been easier. 

    <telerik:RadWindowManager ID="RadWindowManager1" Modal="true" Behavior="Default" 
        InitialBehavior="Close" Overlay="true" runat="server">  
        <Windows> 
            <telerik:RadWindow ID="EditTask" runat="server" Title="Edit Task" 
                    Width="900px" Height="800px" ReloadOnShow="true" Modal="true"   
                    Skin="Default" VisibleStatusbar="false" KeepInScreenBounds="true" /> 
        </Windows> 
    </telerik:RadWindowManager>  

    The parameter KeepInScreenBounds does the trick nicely.  Thanks anyway!
  3. Answer
    Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 15 Jun 2009 Link to this post

    Hi Michael,

    As an alternative, you can use the oWindow.center() function of the RadRindow's client-side object :

     
    var oWindow = radopen("http://www.telerik.com""EditTask"); 
     
    oWindow.center(); 


    Best wishes,
    Fiko
    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