AggregateFunction
Represents an aggregate function.
Definition
Namespace:Telerik.DataSource
Assembly:Telerik.DataSource.dll
Syntax:
[JsonConverter(typeof(AggregateFunctionConverter))]
public abstract class AggregateFunction : JsonObject
Inheritance: objectJsonObjectAggregateFunction
Inherited Members
Constructors
protected AggregateFunction()
Methods
Creates the aggregate expression that is used for constructing expression tree that will calculate the aggregate result.
public abstract Expression CreateAggregateExpression(Expression enumerableExpression, bool liftMemberAccessToNull)
The grouping expression.
liftMemberAccessToNullboolReturns:Serializes the provided dictionary.
protected override void Serialize(IDictionary<string, object> json)
Overrides:
Properties
public abstract string AggregateMethodName { get; }
Gets or sets the informative message to display as an illustration of the aggregate function.
[JsonIgnore]
public string Caption { get; set; }
The caption to display as an illustration of the aggregate function.
Gets or sets the name of the aggregate function, which appears as a property of the group record on which records the function works.
[JsonIgnore]
public virtual string FunctionName { get; set; }
The name of the function as visible from the group record.
The type of the field
[JsonIgnore]
public Type MemberType { get; set; }
Gets or sets a string that is used to format the result value.
[JsonIgnore]
public virtual string ResultFormatString { get; set; }
The format string.
Gets or sets the name of the field, of the item from the set of items, which value is used as the argument of the aggregate function.
public virtual string SourceField { get; set; }
The name of the field to get the argument value from.