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

Can we render a single node with different colors

1 Answer 55 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Abhishek Dixit
Top achievements
Rank 1
Abhishek Dixit asked on 02 Jul 2009, 06:08 AM
Hi,

 We have a requirement where a TreeViewNode text should have different colors. For ex: if the text is "AAA: Generate Profile" then "AAA" shuld be in red color and "Generate Profile" should be in blue.
 Another requirement is that of having a drill down popup for a Treeview node.

So please let us know if the Telerik's TreeView control can meet these 2 requirements?.

Thanks,
Abhishek

1 Answer, 1 is accepted

Sort by
0
Paul
Telerik team
answered on 02 Jul 2009, 02:37 PM
Hello Abhishek,

Putting arbitrary HTML in the node's text may lead to invalid HTML since the text of the node is rendered in a SPAN tag. For example It is not permitted to render DIV within SPAN tags.

On a side note you can use templates runtime. I suggest you check this help topic for more details. You can even instantiate controls and add it to your Node's controls collection.

All the best,
Paul
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
TreeView
Asked by
Abhishek Dixit
Top achievements
Rank 1
Answers by
Paul
Telerik team
Share this question
or