New to Telerik ReportingStart a free 30-day trial

Provides custom (user-defined) implementation for aggregate function.

Definition

Namespace:Telerik.Reporting.Expressions

Assembly:Telerik.Reporting.dll

Syntax:

C#
public interface IAggregateFunction

Methods

Accumulates the passed values in the aggregate.

C#
void Accumulate(object[] values)
Parameters:valuesobject[]

The values that will be accumulated on a single accumulation operation. The length of the values array equals to the number of parameters that the defined aggregate expects (most common one).

Gets the value that the aggregate instance keeps currently accumulated.

C#
object GetValue()
Returns:

object

Returns the currently accumulated value.

Initializes the aggregate function instance. Implement to set the aggregate in its initial state ready to accumulate and merge values.

C#
void Init()

Merges another instance of the same aggregate function into the current instance. Implement this method to allow the reporting engine to merge the two resulting aggregates coming from two subsets of the aggregated data source rows.

C#
void Merge(IAggregateFunction aggregateFunction)
Parameters:aggregateFunctionIAggregateFunction

Another instance of the same aggregate function that will be merged in the current instance.