We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Treeview Client side node checking

Hi,

Is it possible to check each sub node of a node that's been checked using client side code?

Something like:
ClientSideOnNodeCheckChanged="nodeCheck(this)"

function nodeCheck(node)
{
for (subNode in node.SubNodes)
{
subNode.Checked = node.Checked;
}
}

Regards, Peter.

1 Reply

GB Gokul B Syncfusion Team April 13, 2007 12:13 AM UTC

Hi Peter,

Attached is the sample in which the 'AutoPostBackOnNodeCheckChanged' is set to true for TreeView control, which triggers a callback and call the serverside function TreeView1_NodeCheckChanged. In 'TreeView1_NodeCheckChanged' we can check or uncheck the subnodes of the TreeView node whose check status has been modified.

TreeView Node Checking

We can't check and uncheck the subnodes on Clientside using code snippet which is similar to your code snippet. However, we have found an alternate way to check and uncheck the subnodes on client side using the below code snippet.



Let us know if you have any other queries.

Thanks for using Syncfusion products.

Regards,
Gokulkumar B

Loader.
Live Chat Icon For mobile
Up arrow icon