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

Row Counts in Group Header Text

2 Answers 503 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Matt asked on 30 Mar 2015, 08:22 PM
Visual Studio 2013
C#
.NET 4.0 WinForms
Telerik 2014.3.1202.40

I have a simple grid populated with many records and I allow users to drag columns to the grouping panel. Grouping is not done programmatically. After lots of searching, I can't find a solution for what I am trying to do and am surprised there isn't just a simple property built in to do this, as I would think it's extremely common. Maybe there is and I can't find it.

I would like to simply include record counts in the group header text. I.E. Males (5). These counts would need to update as groups are placed and as items are filtered. I have accomplished this by using SummaryRows, but I really want the count to be in the header text because for my application of the grid, SummaryRows add a lot of clutter and confusion.

Any direction would be greatly appreciated. Thanks.

2 Answers, 1 is accepted

Sort by
0
Matt
Top achievements
Rank 1
answered on 30 Mar 2015, 10:50 PM
The following link seemed to do the trick... This took a while to track down but I got what I needed.

http://www.telerik.com/forums/show-summary-row-in-group-header
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 02 Apr 2015, 11:44 AM
Hello Matt,

Thank you for writing.

I am glad that you have found a suitable solution for your requirement. You can refer to our GridView >> Formatting Group Header Row help article which is quite useful on this topic. The RadGridView.GroupSummaryEvaluate event allows you to modify the header text of the group rows. The event is fired when the group header row text is needed. Hence, you can include the rows count as well.

I hope this information helps. Should you have further questions, I would be glad to help.
 
Regards,
Dess
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
GridView
Asked by
Matt
Top achievements
Rank 1
Answers by
Matt
Top achievements
Rank 1
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or