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

Rad Editor Stealing Focus

3 Answers 109 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Tom
Top achievements
Rank 1
Tom asked on 23 Sep 2016, 09:52 AM

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

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 26 Sep 2016, 11:31 AM
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.
0
Tom
Top achievements
Rank 1
answered on 26 Sep 2016, 11:34 AM

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

0
Rumen
Telerik team
answered on 26 Sep 2016, 01:47 PM
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.
Tags
Editor
Asked by
Tom
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Tom
Top achievements
Rank 1
Share this question
or