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 CheckingWe 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