Can we render a single node with different colors

2 posts, 0 answers
  1. Abhishek Dixit
    Abhishek Dixit avatar
    43 posts
    Member since:
    Mar 2009

    Posted 02 Jul 2009 Link to this post


     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?.

  2. Paul
    Paul avatar
    4281 posts

    Posted 02 Jul 2009 Link to this post

    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,
    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.
Back to Top