DataBoundItem dictates the RadTreeNode

3 posts, 0 answers
  1. Mark Hanson
    Mark Hanson avatar
    9 posts
    Member since:
    Oct 2012

    Posted 21 Sep 2009 Link to this post


    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.

  2. Nikolay
    Nikolay avatar
    1802 posts

    Posted 24 Sep 2009 Link to this post

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


    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.
  3. DevCraft banner
  4. Stefan
    Stefan avatar
    2891 posts

    Posted 22 Mar 2011 Link to this post

    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.
    the Telerik team
Back to Top