Grouping data

2 posts, 0 answers
  1. plusHR
    plusHR avatar
    58 posts
    Member since:
    Aug 2012

    Posted 16 May 2012 Link to this post

    Hi, I'm using the tree view component bound to an entity model, however I want to group some of the data so that the nodes are grouped;

    In basics I have the following;

    Template Type.....
    Template Detail....
    Template Category....

    The template detail will have multiple entries for multiple categories, what I want to do is two group the categories, where as at the moment if I have two records that have the same category linking to the same template detail, the node shows twice.


  2. Tina Stancheva
    Tina Stancheva avatar
    3299 posts

    Posted 21 May 2012 Link to this post

    Hi Paul,

    I am not sure I understand the structure of your entity model and this is why I don't think I understand your scenario. Is your data in a flat collection, is it self-referencing? Or is it a hierarchical data? If it is a hierarchical data can you give us more details about its structure and the way you need to group it?

    Basically the RadTreeView doesn't expose any grouping functionality - it allows you to structure your data in a hierarchy and use HierarchicalDataTemplates to display it inside the RadTreeViewItems. All data operations like grouping or sorting, should be applied on the business collection used as the ItemsSource of the control. You can examine this tutorial on how to bind the RadTreeView to a collection of items generated through a WCF service and/or at this forum post describing how to bind to a flat collection of self-referencing data.

    Tina Stancheva
    the Telerik team

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

Back to Top