New to Telerik UI for ASP.NET AJAX? Download free 30-day trial


This event is fired after the content is set in the content area, after the OnClientInit event and just before the editor is ready for use.  

function OnClientLoad(editor, args)
editor object Returns a reference to RadEditor client object
args object Returns the needed information about the event

The example below demonstrates how to attach the onkeydown event to the content area of RadEditor. When the onkeydown event is raised it will alert the key code of the pressed button:

<script type="text/javascript">
    function OnClientLoad(editor, args) {

        editor.attachEventHandler("onkeydown", function (e) {
            alert("Content area key down " + e.keyCode);

<telerik:RadEditor RenderMode="Lightweight" runat="server" ID="RadEditor1" OnClientLoad="OnClientLoad"></telerik:RadEditor> 
In this article