HierquicalDatemplate Problem

2 posts, 0 answers
  1. Valerio
    Valerio avatar
    4 posts
    Member since:
    Jul 2010

    Posted 24 Aug 2010 Link to this post

    Hi there!

    I'm searching for a way to make a treeView with two types os objects:

      |_ D.
      |     |_F.
      |     |_3
      |_ E.
      |_ 1
      |_ 2

    Character are Files Type (Keys), and numbers as objects (Values)
    I can't find a way to mix up the two types in the same Hineritance.
    If someone have a solution? Please tell me.

    Best Regards

  2. Miroslav
    Miroslav avatar
    922 posts

    Posted 26 Aug 2010 Link to this post

    Hello Valerio,

    Yes, this is possible by using an ItemTemplateSelector:


    It is a class that returns a template (HierarchicalDataTemplate) for each item - you can base your logic on the item type on any other condition you like.

    Best wishes,
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top