Multiple Collections for One Item

3 posts, 1 answers
  1. Kevin Hendriks
    Kevin Hendriks avatar
    56 posts
    Member since:
    Feb 2009

    Posted 16 Dec 2011 Link to this post

    Hello,

    I have been breaking my head over the following problem and I do not get it working fully.

    I have a collection of Fase.
    The Fase object Has three collectlions namely
    Software
    Training
    Consultancy.

    I want my treeview to look like this
    Fase1
    -Software
    --Item1
    --Item2
    -Training
    --Item1
    --Item2
    -Consultancy
    --Item1
    --Item2
    Fase1
    -Software
    --Item1
    --Item2
    -Training
    --Item1
    --Item2
    -Consultancy
    --Item1
    --Item2


    These also all need different template but I am not able to figure out to get the first part working
    Fase1
    -Software
    -Training
    -Consultancy

    Is it even possible what I try to create with my current dataobjects.

  2. Answer
    Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 19 Dec 2011 Link to this post

    Hello Kevin Hendriks,

     Please examine the attached project where a basic solution could be found. We have Users that have Collections of Rights and LogEntries which are united in single collection so that a TemplateSelector could be applied. Please let us know if the suggested approach satisfies you.

    Best wishes,
    Petar Mladenov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. UI for WPF is Visual Studio 2017 Ready
  4. Kevin Hendriks
    Kevin Hendriks avatar
    56 posts
    Member since:
    Feb 2009

    Posted 19 Dec 2011 Link to this post

    Hello,

    I have a slightly different solution now. But the idea is the same.

    Thanks for the help

    With kind regards,
    Kevin
Back to Top