Interface
IAggregateFunction

Defines a custom type that may be used for custom value aggregation in data component. The interface needs to be cloneable due to the parallel data processing.

Definition

Namespace:Telerik.Maui.Controls.Data

Assembly:Telerik.Maui.Controls.dll

Syntax:

cs-api-definition
public interface IAggregateFunction

Methods

Accumulate(object)

Applies the function logic to the provided value - that is the extracted value from the ViewModel.

Declaration

cs-api-definition
void Accumulate(object value)

Parameters

value

object

Clone()

Clones the current instance.

Declaration

cs-api-definition
IAggregateFunction Clone()

Returns

IAggregateFunction

GetValue()

Gets the computed value.

Declaration

cs-api-definition
object GetValue()

Returns

object

Merge(IAggregateFunction)

Merges this function with another one - this is used when Grand Totals are calculated.

Declaration

cs-api-definition
void Merge(IAggregateFunction aggregateFunction)

Parameters

aggregateFunction

IAggregateFunction

Update(object, object)

Updates the aggregate function by removing the contribution of an old value and adding a new value. This allows for efficient recalculation when data items are modified without recomputing the entire aggregation.

Declaration

cs-api-definition
void Update(object oldValue, object newValue)

Parameters

oldValue

object

newValue

object