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:

    A. 
      |_ D.
      |     |_F.
      |     |_3
      |_ E.
      |_ 1
      |_ 2
    B.
    C.

    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

    Valerio
  2. Miroslav
    Admin
    Miroslav avatar
    922 posts

    Posted 26 Aug 2010 Link to this post

    Hello Valerio,

    Yes, this is possible by using an ItemTemplateSelector:

    http://www.telerik.com/help/silverlight/radtreeview-templating-item-template-selector.html

    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,
    Miroslav
    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
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top