or
<
body
onload
=
"SetFocusOnTextBox();"
>
<
form
id
=
"form1"
runat
=
"server"
>
<
asp:ScriptManager
id
=
"ScriptManager"
runat
=
"server"
/>
<
telerik:radeditor
runat
=
"server"
ID
=
"RadEditor1"
>
<
Content
>
Here is sample content!
</
Content
>
</
telerik:radeditor
>
<
input
type
=
"text"
id
=
"text"
/>
<
input
type
=
"button"
value
=
"Set Focus On RadEditor"
onclick
=
"SetFocusOnRadEditor()"
/>
<
script
type
=
"text/javascript"
>
function SetFocusOnRadEditor()
{
var editor = $find("<%=RadEditor1.ClientID%>"); //get a reference to RadEditor client object
editor.setFocus(); //set the focus on the the editor
}
function SetFocusOnTextBox()
{
var editor = $get("text"); //get a reference to the input textbox with id text
editor.focus(); //set the focus on the the textbox
}
</
script
>
</
form
>
</
body
>