Default grouping in RadGridView

5 posts, 0 answers
  1. DANIIl
    DANIIl avatar
    14 posts
    Member since:
    Apr 2015

    Posted 27 Jun 2015 Link to this post

    Hi!

     I use GridView for displaying objects such as:

     class Detail {

         string Name

         string Value

         string DetailGroup

    }

     I create collection and bound GridView ItemsSource to it. In gridView i create 3 columns for each property. Then i start my application I want to the default group was by DetailGroup property. I use GroupingDescriptor, but i don't understand, how can i connect it with My DetailGroupColumn or how to bing it to the Collection property (DetailGroup).

     Will be grateful for help, I hope somebody had such problem.

  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 30 Jun 2015 Link to this post

    Hello,

    You can group on the DetailGroup Member. You can also check the documentation on Grouping for further details.

    As to the second part of the question, would you like to populate the column bound to DetailGroup to another collection? Maybe something like GridViewComboBoxColumn?

    You can also check the topic on Defining Columns.

    Regards,
    Dimitrina
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. DANIIl
    DANIIl avatar
    14 posts
    Member since:
    Apr 2015

    Posted 01 Jul 2015 in reply to Dimitrina Link to this post

    Dimitrina, thanks for the help. I want set default grouping. In attach files i showed it! In figure i showed, what i want, then i started my application. This grouping must be default.

  4. DANIIl
    DANIIl avatar
    14 posts
    Member since:
    Apr 2015

    Posted 01 Jul 2015 Link to this post

    I find a solve! I use GroupDescriptor, in "Member" property i set my Items PropertyName (DetailGroup)
  5. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 01 Jul 2015 Link to this post

    Hi,

    You can indeed specify the Member you wish to be grouped on. In addition, when the user drags the column header to the group panel in order to group data, you can subscribe for RadGridView.Grouping event and introduce some modifications to the default case.

    Regards,
    Dimitrina
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top