RadControls for ASP.NET AJAX 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:
The example below shows a message containing the text of a node and the checked state of its checkbox when checked/unchecked.
CopyASPX
<script type="text/javascript" language="javascript">
function ClientNodeChecked(sender, eventArgs) {
var node = eventArgs.get_node();
alert("You have checked node " +
node.get_text() +
". Current check state is: " +
node.get_checked());
}
</script>
<telerik:RadTreeView ID="RadTreeView1" runat="server" CheckBoxes="true" OnClientNodeChecked="ClientNodeChecked">
</telerik:RadTreeView>
See Also