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

Checkboxes in TreeView

Hi, We want to have checkboxes only on some nodes (leafs). All other nodes (that are parents) should be drawn without checkboxes at all. Can it be done without owner-drawing all nodes ? Alexander Arlievsky alex@mprest.com

2 Replies

AD Administrator Syncfusion Team January 5, 2004 05:30 AM

Hi Alexander, Here is a code snippet that demonstrates how you can show checkboxes for only the first (node 0) below the parent node in a TreeViewAdv control in Essential Tools 2.0: //Show Checkbox only for the first node below the parent node(s) int i = 0; while (i < this.treeViewAdv1.Nodes.Count) { this.treeViewAdv1.Nodes[i].Nodes[0].ShowCheckBox = true; i++; } I hope this gives you an idea to do what you are looking for. Regards, Arun


AA Alexander Arlievsky January 5, 2004 08:10 AM

Thanks, Was version 2.0 finally released or your example uses beta ? Can it be done on 1.6 ? Alexander Arlievsky alex@mprest.com

Loader.
Live Chat Icon For mobile
Up arrow icon