Ability to group on Column with comma seperated values.

3 posts, 0 answers
  1. Rajani
    Rajani avatar
    14 posts
    Member since:
    Feb 2013

    Posted 21 Mar 2013 Link to this post


    In my RadGridView I have a field "Fruits" which is a comma separated string such as "apple, orange, banana". When I group on Fruits, the groups are created based on the string value in the Fruits .. What I want is  separate group for each value in the Fruits column .. Is there a way I can achieve this? I saw examples of CustomGroupDescriptors, will that help me achieve this functionality?

  2. Mythox
    Mythox avatar
    6 posts
    Member since:
    Nov 2007

    Posted 08 May 2013 Link to this post

    I am interested in this topic too. somebody can help us?
  3. Rossen Hristov
    Rossen Hristov avatar
    2477 posts

    Posted 08 May 2013 Link to this post


    Our data engine uses LINQ for all data operations. So for example, when you group on the Country column something like this happens behind the scenes:

    var results = customersCollection.GroupBy(customer => customer.Country);

    I don't believe that you can write such a query in LINQ that does what you describe.

    Kind regards,
    Rossen Hristov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top