New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial
OnClientNodeChecked
The OnClientNodeChecked client-side event occurs after the end user selects a checkbox using mouse or keyboard. The node checked status returned by the node get_checked() function has now changed to reflect the new value. The action can longer be canceled.
The event handler receives parameters:
-
The TreeView instance that fired the event.
-
Event arguments with functions:
-
get_node() retrieves a reference to the clicked on node.
-
get_domEvent() retrieves a DOM event object of the node check.
The example below shows a message containing the text of a node and the checked state of its checkbox when checked/unchecked.
ASPNET
<telerik:RadTreeView RenderMode="Lightweight" ID="RadTreeView1" runat="server" CheckBoxes="true" OnClientNodeChecked="ClientNodeChecked">
</telerik:RadTreeView>