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

[Solved] Average AggregateFunction does not work on double data

2 Answers 102 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.
Sébastien ISINGRINI
Top achievements
Rank 1
Sébastien ISINGRINI asked on 04 Dec 2009, 10:42 AM
Hi Telerik Team,

I have a problem using an aggregate function on a double column.
If I use the sum function, it works fine and I have in total row and groups rows the sum displayed for my column.
If I use the average function, I have an unhandled error (Average not compatible with arguments) whereas, the data is the same and all double.

Do you have an idea ?

Seb

2 Answers, 1 is accepted

Sort by
0
Accepted
Vlad
Telerik team
answered on 04 Dec 2009, 10:47 AM
Hi Seb,

I've just tried this however everything worked fine on my end. You can check the attached project.

All the best,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Sébastien ISINGRINI
Top achievements
Rank 1
answered on 04 Dec 2009, 11:04 AM
Hi Vlad,
Thank you for your very fast support.

Your attachment helped me to find I forgot the SourceField property when I was generating AverageFunction from behind whereas it was for SumFunction.

Thank you.
Seb
Tags
GridView
Asked by
Sébastien ISINGRINI
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Sébastien ISINGRINI
Top achievements
Rank 1
Share this question
or