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

Custom Aggregate Function

0 Answers 41 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Siddhant
Top achievements
Rank 1
Siddhant asked on 15 Jan 2013, 07:04 AM

I am trying to create and aggregate function


var aggregate = new AggregateFunction<ResourceAllocationBE, double>
{
AggregationExpression = models => models.Sum(model => model.period[0].allocation),
Caption = ""
};

The ResourceAllocationBE contains a period property which is another list that contains allocation and the date. Currently it is taking the first elemnt of the list but i want it to automatically select based on the date alone.
i need to sum up the allocation and that also for a particular date. which might be null some of the times.

No answers yet. Maybe you can help?

Tags
GridView
Asked by
Siddhant
Top achievements
Rank 1
Share this question
or