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

Default grouping in RadGridView

4 Answers 541 Views
GridView
This is a migrated thread and some comments may be shown as answers.
DANIIl
Top achievements
Rank 1
DANIIl asked on 27 Jun 2015, 04:30 PM

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.

4 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 30 Jun 2015, 02:56 PM
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
0
DANIIl
Top achievements
Rank 1
answered on 01 Jul 2015, 05:26 AM

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.

0
DANIIl
Top achievements
Rank 1
answered on 01 Jul 2015, 05:44 AM
I find a solve! I use GroupDescriptor, in "Member" property i set my Items PropertyName (DetailGroup)
0
Dimitrina
Telerik team
answered on 01 Jul 2015, 12:37 PM
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
Tags
GridView
Asked by
DANIIl
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
DANIIl
Top achievements
Rank 1
Share this question
or