Grouping by column with (string [] )

2 posts, 0 answers
  1. MAE
    MAE avatar
    1 posts
    Member since:
    Jun 2011

    Posted 21 Oct 2013 Link to this post

    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!

  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 23 Oct 2013 Link to this post

    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 >>
  3. DevCraft banner
Back to Top