TreeNodeAdv.Name?
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() !!!
SIGN IN To post a reply.
10 Replies
VR
Venkateshwaran Ramdoss
Syncfusion Team
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.
Sample: TreeviewWFSample
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.
JA
Jalil
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.
JA
Jalil
August 13, 2016 06:01 PM UTC
I really wonder why you suppressed the Name property?
JA
Jalil
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 !
VR
Vijayalakshmi Roopkumar
Syncfusion Team
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.
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.
JA
Jalil
August 22, 2016 10:31 AM UTC
Thank you for your concerns!
NI
Nicolas
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
VR
Vijayalakshmi Roopkumar
Syncfusion Team
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.
Thank you for your update.
Please let us know if you have any other concerns.
Regards,
Vijayalakshmi V.R.
JA
Jalil
August 24, 2016 06:48 AM UTC
Nice one! Thank you Nicolas
VR
Vijayalakshmi Roopkumar
Syncfusion Team
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.
Thank you for your update.
Please let us know if you need any further assistance.
Regards,
Vijayalakshmi V.R.
SIGN IN To post a reply.
- 10 Replies
- 4 Participants
-
JA Jalil
- Aug 10, 2016 08:06 AM UTC
- Aug 25, 2016 04:37 AM UTC