InterfaceIAggregateFunction
Interface
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.
Clone()
Clones the current instance.
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
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.