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

Grouping by column with (string [] )

1 Answer 41 Views
GridView
This is a migrated thread and some comments may be shown as answers.
MAE
Top achievements
Rank 1
MAE asked on 21 Oct 2013, 11:36 AM
I have column "Groups" with type (string[] ) and converter from (string[] to string).

Sample Rows 
  1.  Admin, User
  2.  Admin
  3.  User

After i try to group by column "Groups", i get  next groups rows column "Groups", i get  next groups rows
  1.  Admin, User ( - 1 rows)
  2.  Admin (1 rows)
  3.  User (1 rows)

But i want to get groups
  1. Admin ( 2 rows)
  2. User (1 rows )

How i can set group separator or other.
Thank!

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 23 Oct 2013, 01:55 PM
Hi,

When the user applies a Grouping, then we build a LINQ query to be executed against the source collection. We group the data by the property you have bound the column to (through DataMemberBinding), considering the format you have applied. You can also check our online demo illustrating the same.

In case, you would like to have a different result, you can define and add a generic GroupDescriptor to group the data as you wish.

Regards,
Didie
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
GridView
Asked by
MAE
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or