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

[Solved] Window popup location on very long page

2 Answers 143 Views
Window
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 10 Jun 2009, 10:34 PM
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 Answers, 1 is accepted

Sort by
0
Michael
Top achievements
Rank 1
answered on 11 Jun 2009, 09:25 PM
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!
0
Accepted
Fiko
Telerik team
answered on 15 Jun 2009, 03:14 PM
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.
Tags
Window
Asked by
Michael
Top achievements
Rank 1
Answers by
Michael
Top achievements
Rank 1
Fiko
Telerik team
Share this question
or