New to Telerik UI for ASP.NET MVC? Start a free 30-day trial

Represents an aggregate function.

Definition

Namespace:Kendo.Mvc

Assembly:Kendo.Mvc.dll

Syntax:

C#
public abstract class AggregateFunction : JsonObject

Inheritance: objectJsonObjectAggregateFunction

Derived Classes: EnumerableAggregateFunctionBase

Inherited Members JsonObject.ToJson()object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

C#
protected AggregateFunction()

Properties

C#
public abstract string AggregateMethodName { get; }

Gets or sets the informative message to display as an illustration of the aggregate function.

C#
public string Caption { get; set; }
Property Value:

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.

C#
public virtual string FunctionName { get; set; }
Property Value:

The name of the function as visible from the group record.

C#
public Type MemberType { get; set; }

Gets or sets a string that is used to format the result value.

C#
public virtual string ResultFormatString { get; set; }
Property Value:

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.

C#
public virtual string SourceField { get; set; }
Property Value:

The name of the field to get the argument value from.

Methods

Creates the aggregate expression that is used for constructing expression tree that will calculate the aggregate result.

C#
public abstract Expression CreateAggregateExpression(Expression enumerableExpression, bool liftMemberAccessToNull)
Parameters:enumerableExpressionExpression

The grouping expression.

liftMemberAccessToNullbool
Returns:

Expression

Generates default name for this function using this type's name.

C#
protected virtual string GenerateFunctionName()
Returns:

string

Function name generated with the following pattern: {GetType().Name}_{GetHashCode()}

C#
protected override void Serialize(IDictionary<string, object> json)
Parameters:jsonIDictionary<string, object>

Overrides: JsonObject.Serialize(IDictionary<string, object>)