This is a migrated thread and some comments may be shown as answers.

Ability to group on Column with comma seperated values.

2 Answers 111 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Rajani
Top achievements
Rank 1
Rajani asked on 21 Mar 2013, 06:51 AM
Hello,

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?

Thanks.

2 Answers, 1 is accepted

Sort by
0
Mythox
Top achievements
Rank 1
answered on 08 May 2013, 01:16 PM
I am interested in this topic too. somebody can help us?
0
Rossen Hristov
Telerik team
answered on 08 May 2013, 01:32 PM
Hello,

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.

Tags
GridView
Asked by
Rajani
Top achievements
Rank 1
Answers by
Mythox
Top achievements
Rank 1
Rossen Hristov
Telerik team
Share this question
or