Edit this page

OnClientLoad

The OnClientLoad event fires after the RadTreeView client-side object has been fully initialized.

The event handler has two parameters:

  1. The TreeView instance that fired the event.

  2. An empty event arguments object.

The example below demonstrates handling the OnClientLoad event and displaying the id of the initialized RadTreeView object to the user:

<telerik:RadTreeView RenderMode="Lightweight" ID="RadTreeView1" 
                     runat="server" 
                     OnClientLoad="onLoad">
</telerik:RadTreeView>
function onLoad(sender, eventArgs) 
{
    alert(sender.get_id());
}