Locking the node....

Hi, I would like to disable the checkbox or the option button of the node but still I should be able to select and deselect the node i.e., want to lock the checkbox. It may be silly because I am new to TreeView. Any help will be of great use. Thanks, Jay

1 Reply

DT Deepa TS Syncfusion Team March 15, 2006 12:40 PM UTC

Hi Jay, You could disable the checkbox or the option button of the respective node and still you can select and deselect the node by setting the EnabledButtons property to false of the respective treeNodeAdv as given below: private void button1_Click(object sender, System.EventArgs e) { TreeNodeAdv node=this.treeViewAdv1.SelectedNode; node.EnabledButtons=false; } Please take a look at the attached sample and let me know if this helps you. Thanks for using Syncfusion Products. Kind Regards, Deepa.

DisableButtons.zip

Loader.
Up arrow icon