Hello Rahul,
To prevent your button from posting the whole page back, you will need to add a
return false;, e.g.
<input type="button" onclick="focusEditor();
return false;">
One of the easiest ways to move the cursor to the end of the editor content is to select all content and then collapse the selection to the end, e.g.
function focusEditor()
{
var editor = $find("<%=RadEditor1.ClientID%>");
var doc = editor.get_document(); //or get_Document() in earlier versions such as Q1 2007
doc.execCommand("SelectAll", null, false);
//Collapse selection to the end
editor.getSelection().collapse();
}
Greetings,
Tervel
the Telerik team