Hide text section in treeviewAdv node

Hi.

Is it possible to hide the text section of a node in the treeviewAdv control?
All of the nodes in my tree have a custom control and I don't need any text. String.Empty does not work (a thin bar appears every time the node is selected).
I also wonder if is it possible to start an item drag from the custom control of the node and not from the text.
Thanks a lot.

1 Reply

J. J.Nagarajan Syncfusion Team November 7, 2007 09:13 PM UTC

Hi Ariel ,

If your intention is to prevent the node selection of TreeViewAdv control then you can handle BeforeSelect event. Please refer to the following code snippet.

[C#]

this.treeViewAdv1.BeforeSelect += new Syncfusion.Windows.Forms.Tools.TreeNodeAdvBeforeSelectEventHandler(this.treeViewAdv1_BeforeSelect);
private void treeViewAdv1_BeforeSelect(object sender, Syncfusion.Windows.Forms.Tools.TreeViewAdvCancelableSelectionEventArgs args)
{
args.Cancel = true;
}


Please use the above code snippet and let me know if this helps.

Regards,
Nagaraj

Loader.
Up arrow icon