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. (Last updated on : November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

TreeNodeAdv.Name?

Thread ID:

Created:

Updated:

Platform:

Replies:

125346 Aug 10,2016 08:06 AM UTC Aug 25,2016 04:37 AM UTC WinForms 10
loading
Tags: TreeViewAdv
Jalil
Asked On August 10, 2016 08:06 AM UTC

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 01:01 PM UTC

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 05:59 PM UTC

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 06:01 PM UTC

I really wonder why you suppressed the Name property?

Jalil
Replied On August 13, 2016 06:04 PM UTC

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 12:29 PM UTC

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 10:31 AM UTC

Thank you for your concerns!

Nicolas
Replied On August 23, 2016 01:39 AM UTC

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 05:19 AM UTC

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 06:48 AM UTC

Nice one! Thank you Nicolas

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

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.

Warning Icon 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.Close Icon

;