AggregateValue
Holds a value presentation of an aggregate function accumulated during pivot grouping.
Definition
Namespace:Telerik.Web.UI.PivotGrid.Core
Assembly:Telerik.Web.UI.dll
Syntax:
public abstract class AggregateValue
Inheritance: objectAggregateValue
Derived Classes:
Inherited Members
Constructors
protected AggregateValue()
Fields
Gets an AggregateValue representing error.
[SuppressMessage("Microsoft.Security", "CA2104:DoNotDeclareReadOnlyMutableReferenceTypes", Justification = "Error is immutable.")]
public static readonly AggregateValue ErrorAggregateValue
Methods
Add the value to the results in the current AggregateValue instance.
protected abstract void AccumulateOverride(object value)
The value to accumulate.
Gets a presentation friendly value of the results in the current AggregateValue.
[SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Design choice.")]
[SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate", Justification = "Design choice.")]
public object GetValue()
Returns an object containing a formatted value or error object.
Gets a presentation friendly value of the results in the current AggregateValue instance to be returned in GetValue(). If an error occurred during calculations the GetValue() will not call GetValueOverride() but return the error instead.
[SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate", Justification = "Design choice.")]
protected abstract object GetValueOverride()
A result object.
Merge the results of an AggregateValue with the results in the current AggregateValue instance.
protected abstract void MergeOverride(AggregateValue childAggregate)
The AggregateValue to merge.