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

Issue with RadWindow and focus on controls

2 Answers 56 Views
Window
This is a migrated thread and some comments may be shown as answers.
Rolf Falnes
Top achievements
Rank 1
Rolf Falnes asked on 08 Feb 2010, 12:55 PM

Hello.

We have an ASP page showing a list of tasks. When clicking on one of the tasks, we show the task in a RadWindow using the radopen function. The RadWindow then shows a new asp page. This works fine, but if we in the page load event of the asp page shown in the RadWindow, set focus to an asp textbox, the scrollbar in the web browser moves to the top. This cause the RadWindow to scroll out of visibility for the user when user has scrolled down in the task list to open a task.

Is this a bug in the RadWindow control?

We use the latest version - 2009 Q3 SP2.

Regards, Rolf

2 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 09 Feb 2010, 08:25 AM
Hi Rolf,

If this behavior occurs when you set Focus() from the server, this issue is not directly related to the RadWindow control but to the way browser's handle focused elements in an IFRAME - you will get the same behavior if you replace RadWindow with a standard IFRAME (RadWindow is basically an IFRAME and behaves like one).

If this is the case, I suggest to set the focus by using the client-side focus() method - you could fire it in the ASP.NET AJAX's native pageLoad() function for example.


Regards,
Georgi Tunev
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
0
Rolf Falnes
Top achievements
Rank 1
answered on 09 Feb 2010, 10:44 AM
Yes, it occurs when I set Focus from the server,so then I know what to do.
Thanks!

Regards, Rolf
Tags
Window
Asked by
Rolf Falnes
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Rolf Falnes
Top achievements
Rank 1
Share this question
or