This is a migrated thread and some comments may be shown as answers.

Does Telerik RadTreeNode have some sort of tag property ?

3 Answers 71 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Seabus
Top achievements
Rank 1
Seabus asked on 25 Aug 2011, 12:09 AM
Hi,

I have to create some RadTreeNodes programatically and I was wondering if the nodes have some sort of "tag" property ( like the tag property that controls in windows forms used to have ) ....

foreach(Student in students)
{
RadTreeNode treeNode = new RadTreeNode() { Text = Student.Name, Tag = Student.Id  ??? }
}

Thanks.


Seabus

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 1
answered on 25 Aug 2011, 05:44 AM
Hello Seabus,

The RadTreeview provide custom Attributes which allows to store additional information.

You can find more on this from the following help article.
Custom Attributes Overview.

Thanks,
Shinu.
0
Chris
Top achievements
Rank 1
answered on 08 Jan 2017, 07:09 AM
These are string attributes. We need a Tag property which is an object, just like nearly every standard asp.net component has, including its TreeView component. Telerik components are not supposed to be downgrades compared to what you get for free with Visual Studio.
0
Ivan Danchev
Telerik team
answered on 11 Jan 2017, 03:37 PM
Hello Chris,

Unlike the TreeNode in Win Forms, the TreeNode object which represents a node in the ASP.NET TreeView does not have a Tag property. You can see a list of its properties here. So there is no downgrade with regard to the functionality the RadTreeView for ASP.NET AJAX offers in comparison with the ASP.NET TreeView.

Regards,
Ivan Danchev
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
TreeView
Asked by
Seabus
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 1
Chris
Top achievements
Rank 1
Ivan Danchev
Telerik team
Share this question
or