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

RadWindow popups

2 Answers 71 Views
Window
This is a migrated thread and some comments may be shown as answers.
waruni
Top achievements
Rank 1
waruni asked on 26 Aug 2009, 11:42 AM

Hi


I have a problem regarding RadWindow popups. We are calling it from a button click at the bottom of the main page (The main page is a bit lengthy). Once we click on the button, the RadWindow popup opens, but the focus is not set to the popup page. The focus is set to the top of the page and the user has to scroll down to view the pop up RadWindow.

How can i fix this?

thanks.

Regards,

Waruni


2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 26 Aug 2009, 12:38 PM
Hi Waruni,

I guess setting window position to center will do the trick.

ASPX:
 
<telerik:RadWindowManager OnClientShow="OnClientShow" ID="RadWindowManager1" runat="server">  
<Windows> 
    <telerik:RadWindow NavigateUrl="http://www.google.com" VisibleOnPageLoad="true"></telerik:RadWindow> 
</Windows> 
</telerik:RadWindowManager> 

JavaScript:
 
<script type="text/javascript">  
function OnClientShow(sender, args)  
{  
    sender.center();  
}  
</script> 

Thanks,
Princy.
0
Georgi Tunev
Telerik team
answered on 26 Aug 2009, 01:11 PM
Hello waruni,

How exactly do you open the RadWindow on that page? Please post the code of the calling element and the JavaScript code here.

Greetings,
Georgi Tunev
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
waruni
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Georgi Tunev
Telerik team
Share this question
or