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

Client side Min Aggregate shows null instead of 0

3 Answers 332 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Euan
Top achievements
Rank 1
Euan asked on 10 Feb 2014, 04:59 PM
Hi,

I have a field with all values as null. 
The resulting aggregates as calculated by the datasource client side  and returned by calling aggregates() shows 0 for average, max and sum, but for min it returns null.

Is this a bug as my expectation is that if max, average and sum all default to 0 for when all null values then min should too?

Thanks
Euan

3 Answers, 1 is accepted

Sort by
0
Accepted
Rosen
Telerik team
answered on 12 Feb 2014, 01:04 PM
Hello Euan,

Actually for all of min, max, average and sum aggregates when data consist only nulls the result should also be null. As addressing this will be a mild breaking change, the fix will be included in the official Q1 2014 release. Meanwhile, I have updated your telerik points as a token of gratitude for bringing this to our attention.

Regards,
Rosen
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Euan
Top achievements
Rank 1
answered on 12 Feb 2014, 01:07 PM
Hi,

Guess this means that I should template my grid footer to map nulls to 0 if that's what I want.

Thanks
0
Rosen
Telerik team
answered on 12 Feb 2014, 02:13 PM
Hello Euan,

Indeed, you will need to use templates to format the result to your liking.

Regards,
Rosen
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Data Source
Asked by
Euan
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Euan
Top achievements
Rank 1
Share this question
or