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

Any way to have conditional aggregations?

2 Answers 55 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Aleksandr
Top achievements
Rank 1
Iron
Iron
Veteran
Aleksandr asked on 04 Nov 2020, 11:00 AM
for example Count by FieldValue == "X" ???

2 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 04 Nov 2020, 12:47 PM

Hello Aleksandr,

I am not sure I understand the question, but you have have you own (custom,conditional) aggregates by calculating them yourself and showing those values in the footer. The example in the Notes section of the Column Footer article shows one example of this: https://docs.telerik.com/blazor-ui/components/grid/templates/column-footer#notes

 

Regards,
Marin Bratanov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Jon
Top achievements
Rank 1
Iron
answered on 26 May 2022, 08:39 PM

Hack example (I am wanting to do the same thing, count items in a column ONLY if a certain criteria is true):

 <FooterTemplate>                          
                              @ClassRoster.SelectMany(x => x.ScheduleDays.Where(t => t.DayOfWeekInt == (int)DayOfWeekValueEnum.Monday)).ToList().Count
                           </FooterTemplate>
Tags
Grid
Asked by
Aleksandr
Top achievements
Rank 1
Iron
Iron
Veteran
Answers by
Marin Bratanov
Telerik team
Jon
Top achievements
Rank 1
Iron
Share this question
or