Row Counts in Group Header Text

3 posts, 0 answers
  1. Matt
    Matt avatar
    10 posts
    Member since:
    Sep 2010

    Posted 30 Mar 2015 Link to this post

    Visual Studio 2013
    .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. Matt
    Matt avatar
    10 posts
    Member since:
    Sep 2010

    Posted 30 Mar 2015 Link to this post

    The following link seemed to do the trick... This took a while to track down but I got what I needed.
  3. Dess
    Dess avatar
    2180 posts

    Posted 02 Apr 2015 Link to this post

    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.

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

Back to Top