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

DataBoundItem dictates the RadTreeNode

2 Answers 110 Views
Treeview
This is a migrated thread and some comments may be shown as answers.
Office
Top achievements
Rank 1
Office asked on 21 Sep 2009, 08:09 PM
Hi,

Is there any way to change the RadTreeNode look (or "style") based on the type of DataBoundItem ? For example, if the type of DataBoundItem is Person the RadTreeNode should be red and if the type of DatBoundItem is Address the RadTreeNode should be green (something like WPF DataTemplates).

Thanks in advance.

Mark

2 Answers, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 24 Sep 2009, 10:19 AM

Hello Mark Hanson,

Generally, you can find the answer to your question in your support ticket: RadTreeNode Look.

However, I am posting the answer here as well, in case somebody else is interested in the topic:

"I am afraid that RadTreeView does not provide this functionality out of the box.
You will have to loop through RadTreeView after the binding and set your colors as needed. This can be done using the properties of RadTreeNode - BackColor, ForeColor, etc. Let me know if you have trouble with this.
We are currently considering implementing WPF-like data templates but have not yet reached a decision.
We will provide an ItemDataBound event for RadTreeView in a future release."

Greetings,

Nikolay
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Stefan
Telerik team
answered on 22 Mar 2011, 02:46 PM
Hi Mark Hanson,

Please note that in Q1 2011 we have introduced a major upgrade of RadTreeView control, which is now virtualized and fully customizable. Feel free to download the latest release and try it out. For more information on our latest release refer to this blog post.
 
Regards,
Stefan
the Telerik team
Tags
Treeview
Asked by
Office
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Stefan
Telerik team
Share this question
or