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.

Hide text section in treeviewAdv node

Thread ID:

Created:

Updated:

Platform:

Replies:

69651 Nov 6,2007 12:46 PM Nov 7,2007 04:13 PM Windows Forms 1
loading
Tags: Tools
Ariel Saleh
Asked On November 6, 2007 12:46 PM

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.

J.Nagarajan [Syncfusion]
Replied On November 7, 2007 04:13 PM

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

CONFIRMATION

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.

;