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.

TreeNodeAdv.Name?

Thread ID:

Created:

Updated:

Platform:

Replies:

125346 Aug 10,2016 04:06 AM Aug 25,2016 12:37 AM Windows Forms 10
loading
Tags: TreeViewAdv
Jalil
Asked On August 10, 2016 04:06 AM

How to add a node with a name and text to TreeViewAdv like this treeView.Nodes.Add(name, text)?
I cannot see a name parameters in new TreeNodeAdv() !!!

Venkateshwaran Ramdoss [Syncfusion]
Replied On August 11, 2016 09:01 AM

Hi Jalil, 

Thank you for contacting Syncfusion Support. 

At present, there is no support to pass name and text of the TreeNodeAdv. We can set the TreeNodes by passing it as string. We have prepared a sample for your reference and it can be downloaded from the below link. 

Code Snippet: 
this.treeViewAdv1.Nodes.Add(new TreeNodeAdv("TreeNode1")); 
this.treeViewAdv1.Nodes.Add(new TreeNodeAdv("Treenode2")); 
this.treeViewAdv1.Nodes.Add(new TreeNodeAdv("TreeNode3")); 

Could you please confirm the given solution matches your requirement or else please share us more information about your requirement. 

Regards, 
Venkateshwaran V.R. 


Jalil
Replied On August 13, 2016 01:59 PM

I need to populate the TreeViewAdv from a DataTable, I need Display Member and Value Member.
For the Display Member I will use the TreeNodeAdv.Text property. I used to use the TreeNode.Name property as Value Member.

Since there is no TreeViewAdv.Name property I will use the TreeViewAdv.Tag property instead.

Thank you.

Jalil
Replied On August 13, 2016 02:01 PM

I really wonder why you suppressed the Name property?

Jalil
Replied On August 13, 2016 02:04 PM

I mean I will use TreeNodeAdv.Tag instead of TreeNodeAdv.Name.

I don't know how to edit my posts !

Vijayalakshmi Roopkumar [Syncfusion]
Replied On August 15, 2016 08:29 AM

Hi Jalil,

You can use the TreeNodeAdv.Tag property to hold the Value Member in our TreeViewAdv control.

Please let us know if you have any other concerns.

Regards,
Vijayalakshmi V.R.

Jalil
Replied On August 22, 2016 06:31 AM

Thank you for your concerns!

Nicolas
Replied On August 22, 2016 09:39 PM

Hi Jalil, with TreeViewAdv you can add controls such as textbox, checkbox or combobox as follows:

Dim MyTextBox as New TextBox
MyTextBox.Size = New System.Drawing.Size(75, 500)

Node01.CustomControl = MyTextBox

Me.TreeViewAdv1.Controls.Add(MyTextBox)

MyTextBox.Text = "Place your text here"

Hope this helps! - Nicolas

Vijayalakshmi Roopkumar [Syncfusion]
Replied On August 23, 2016 01:19 AM

Hi Nicolas,

Thank you for your update.

Please let us know if you have any other concerns.

Regards,
Vijayalakshmi V.R.

Jalil
Replied On August 24, 2016 02:48 AM

Nice one! Thank you Nicolas

Vijayalakshmi Roopkumar [Syncfusion]
Replied On August 25, 2016 12:37 AM

Hi Jalil,

Thank you for your update.

Please let us know if you need any further assistance.

Regards,
Vijayalakshmi V.R.

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.

;