Hi, how to set the focus into RadEditor control when the page is loaded?
Actually i tried focus method and the following code given in the documentation
Actually i tried focus method and the following code given in the documentation
. Can anybody please tel me how to set the focus for radeditor ..so that focus will be inside the radeditor when the Page is loaded ..
Thanks in advance
<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>
Thanks in advance
<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>