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

[Solved] Aggrigation Function in Grid View not Work

4 Answers 139 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.
Ahmed
Top achievements
Rank 1
Ahmed asked on 26 Oct 2010, 01:54 PM
I try Grid View Samples Demo (Totals):
http://demos.telerik.com/silverlight/#GridView/Totals

but When I try The Sample It Doesn't Work with me "Invalid Property or Field for Type : Entity"
and Where is The Function Defination "MinUnitPrice" 
        <telerik:SumFunction Caption="Sum: " ResultFormatString="{}{0:c}" SourceField="UnitPrice" />
        <telerik:AverageFunction Caption="Average: " ResultFormatString="{}{0:c}" SourceField="UnitPrice" />




4 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 26 Oct 2010, 02:50 PM
Hi Ahmed,

Please roll on a bit more about the way you are reproducing this issue. Do you use the same settings like those in the demos ? What is the type of MinUnitPrice Property - is it of numeric type ? Which is the version you work with ?
 

Greetings,
Maya
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Ahmed
Top achievements
Rank 1
answered on 26 Oct 2010, 10:42 PM
Yes The Same Settings
Yes Numeric
Q3 2010 Version
...............................
The Most Thing I want To Know is Where is The Code for That Function "MinUnitPrice" Where its Execution??
Thanks Maya And I hope That Help You
0
Accepted
Maya
Telerik team
answered on 27 Oct 2010, 08:54 AM
Hi Ahmed,

Using the example in our demos, I tried to reproduce the issue you specified.I am sending you the sample project I tested the problem on. Please take a look at it and share if there is some misunderstandings according to what you are doing. 
As for the MinUnitPrice function, it is the built-in MinFunction and the MinUnitPrice is the name set to this particular function so that it can be later used in the code-behind. In the sample project I attach, I am defining another FunctionName - MinStadiumCapacity.


Kind regards,
Maya
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Ahmed
Top achievements
Rank 1
answered on 27 Oct 2010, 02:27 PM
Thanks Alot Maya for Your Help and Support
Tags
GridView
Asked by
Ahmed
Top achievements
Rank 1
Answers by
Maya
Telerik team
Ahmed
Top achievements
Rank 1
Share this question
or