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.
Unfortunately, activation email could not send to your email. Please try again.

Treeview Client side node checking

Thread ID:





59348 Apr 11,2007 10:42 AM Apr 12,2007 08:13 PM ASP.NET Web Forms (Classic) 1
Tags: Tools
Peter Kitts
Asked On April 11, 2007 10:42 AM


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

Something like:

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

Regards, Peter.

Gokul B [Syncfusion]
Replied On April 12, 2007 08:13 PM

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.

Gokulkumar B


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.