Rad Editor Stealing Focus

4 posts, 0 answers
  1. Tom
    Tom avatar
    3 posts
    Member since:
    Sep 2016

    Posted 23 Sep Link to this post

    I have a dynamically built page with many different controls loaded onto the page.

    Tthis page could have multiple rad editor on it.

     

    The problem is that the page has the focus set on to the last rad editor loading on to that page.

    Which events sets the focus to the content area?

    the rad editor is drawn as divs

  2. Rumen
    Admin
    Rumen avatar
    12851 posts

    Posted 26 Sep Link to this post

    Hi,

    You can attach to the OnClientLoad client-side event of the last editor, get a reference to the first editor and fire its setFocus() method.

    Regards,
    Rumen
    Telerik by Progress
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Tom
    Tom avatar
    3 posts
    Member since:
    Sep 2016

    Posted 26 Sep Link to this post

    Hi,

    I dont want to have the editors set focus as they are dynamically built and might have other controls on that page. 

    I would like to know how not to set the focus on the editors?

    Cheers

    Tom

  5. Rumen
    Admin
    Rumen avatar
    12851 posts

    Posted 26 Sep Link to this post

    Hello,

    RadEditor is focusing the content area to properly register its content handlers and this cannot be prevented. 

    However, you can scroll the page at the desired location on the page using the solution provided in this StackOverflow thread: Scroll to a specific location on the page using JavaScript.

    Regards,
    Rumen
    Telerik by Progress
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Back to Top