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

RadGridView Group Count

4 Answers 224 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Lois Nicholls
Top achievements
Rank 1
Lois Nicholls asked on 24 Nov 2010, 03:43 PM
I am using RadGridView and I have to provide a capability where user can pick any column for grouping and then Grid should display group count for the column that he has selected. When the first time user would see this screen there won't be any column grouping. User would have a choice to select for which column he wants to group and be able see row counts falls under that group. How I can achieve this?

4 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 24 Nov 2010, 04:13 PM
Hello,

 You can get group items count per group row not per column. 

Best wishes,
Vlad
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Lois Nicholls
Top achievements
Rank 1
answered on 24 Nov 2010, 05:42 PM
Thanks Vlad for your prompt reply. I said incorrectly, I am looking for group items count per group row but without explicitly specifying group descriptor and FunctionCount for each column in the grid. User should be able to pick any column and grid should display items count for the selected group.

Please check screen shot "Initial". This is how screen would like without any grouping specified when user first time view this screen. Next user can pick any column from the grid to see the row counts for the column he has selected for grouping. As an example check GroupByStatus screen shot. Now Grid should display counts for status. But again, user can pick any column. If I specify group descriptor and FunctionCount then grid is creating group for all columns. This is not what I want.
0
Vlad
Telerik team
answered on 26 Nov 2010, 07:56 AM
Hello,

 You can define a simple TextBlock in desired column(s) GroupHeaderTemplate and bind Text property of the TextBlock to Group.ItemCount. You can check this demo for more info. 

Best wishes,
Vlad
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Matt
Top achievements
Rank 2
answered on 02 Oct 2012, 09:35 PM
Thanks as well Vlad! I'm coming a little late to this thread, but it has helped me as well! Thanks!
Tags
GridView
Asked by
Lois Nicholls
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Lois Nicholls
Top achievements
Rank 1
Matt
Top achievements
Rank 2
Share this question
or