RadGridView Grouping on collection

2 posts, 0 answers
  1. Ali
    Ali avatar
    1 posts
    Member since:
    May 2016

    Posted 22 May Link to this post


    I've been using telerik grids for a long time now and been facing an issue lately or lack of my knowledge when it comes to grouping by the collection (not a property). Here's my scenario, I'm showing list of employees in the grid, each employee can have multiple roles and I want to group the data by roles and each group will list all the employees under that role. 


    I am binding my employees collection to a collectionviewsource and adding the groupdescriptions (collection of employee roles) but it ain't showing anything. I wanted to ask if it is possible to group by the collection in such a scenario? Thank you team telerik     

  2. Dilyan Traykov
    Dilyan Traykov avatar
    334 posts

    Posted 25 May Link to this post

    Hello Ali,

    You could use a Generic GroupDescriptor in order to achieve the desired behavior.

    Please also have a look at the "Custom Grouping" demo from our UI for WPF Demos and the "Sort Group by Different Property" demo from our SDK Samples Browser if you have not done so already.

    I hope you find this helpful.

    Dilyan Traykov
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. DevCraft R3 2016 release webinar banner
Back to Top