Issue with RadWindow and focus on controls

3 posts, 0 answers
  1. Rolf Falnes
    Rolf Falnes avatar
    2 posts
    Member since:
    Mar 2009

    Posted 08 Feb 2010 Link to this post

    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. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 09 Feb 2010 Link to this post

    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.
  3. Rolf Falnes
    Rolf Falnes avatar
    2 posts
    Member since:
    Mar 2009

    Posted 09 Feb 2010 Link to this post

    Yes, it occurs when I set Focus from the server,so then I know what to do.
    Thanks!

    Regards, Rolf
Back to Top