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

Configures the source field, display settings, and calculation handlers for a cube measure.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

TModel

Syntax:

C#
public class PivotAjaxDataSourceSchemaCubeMeasureBuilder<TModel> where TModel : class

Inheritance: objectPivotAjaxDataSourceSchemaCubeMeasureBuilder<TModel>

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

Constructors

Initializes a builder for the specified cube measure.

C#
public PivotAjaxDataSourceSchemaCubeMeasureBuilder(PivotDataSourceSchemaMeasureDescriptor measure)
Parameters:measurePivotDataSourceSchemaMeasureDescriptor

Fields

The cube measure descriptor being configured.

C#
protected readonly PivotDataSourceSchemaMeasureDescriptor measure

Methods

Sets an inline client-side function that aggregates measure values.

C#
public virtual PivotAjaxDataSourceSchemaCubeMeasureBuilder<TModel> Aggregate(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The aggregate function.

Returns:

PivotAjaxDataSourceSchemaCubeMeasureBuilder<TModel>

The PivotAjaxDataSourceSchemaCubeMeasureBuilder<TModel> object to support method chaining.

Sets the name of a client-side function that aggregates measure values. Use AggregateName(string) to select a built-in aggregate.

C#
public virtual PivotAjaxDataSourceSchemaCubeMeasureBuilder<TModel> Aggregate(string aggregate)
Parameters:aggregatestring

The name of the client-side aggregate function.

Returns:

PivotAjaxDataSourceSchemaCubeMeasureBuilder<TModel>

The PivotAjaxDataSourceSchemaCubeMeasureBuilder<TModel> object to support method chaining.

Selects a built-in function for aggregating measure values. Supported values are average, count, max, min, and sum.

C#
public virtual PivotAjaxDataSourceSchemaCubeMeasureBuilder<TModel> AggregateName(string aggregateName)
Parameters:aggregateNamestring

The name of the built-in aggregate.

Returns:

PivotAjaxDataSourceSchemaCubeMeasureBuilder<TModel>

The PivotAjaxDataSourceSchemaCubeMeasureBuilder<TModel> object to support method chaining.

Sets the display caption for the measure.

C#
public PivotAjaxDataSourceSchemaCubeMeasureBuilder<TModel> Caption(string caption)
Parameters:captionstring

The text displayed for the measure.

Returns:

PivotAjaxDataSourceSchemaCubeMeasureBuilder<TModel>

The PivotAjaxDataSourceSchemaCubeMeasureBuilder<TModel> object to support method chaining.

Selects the model field whose values are used to calculate the measure.

C#
public PivotAjaxDataSourceSchemaCubeMeasureBuilder<TModel> Field(string member)
Parameters:memberstring

The name of the field used for measure calculations.

Returns:

PivotAjaxDataSourceSchemaCubeMeasureBuilder<TModel>

The PivotAjaxDataSourceSchemaCubeMeasureBuilder<TModel> object to support method chaining.

Selects the model field whose values are used to calculate the measure.

C#
public PivotAjaxDataSourceSchemaCubeMeasureBuilder<TModel> Field<TValue>(Expression<Func<TModel, TValue>> expression)
Parameters:expressionExpression<Func<TModel, TValue>>

An expression selecting the field used for measure calculations.

Returns:

PivotAjaxDataSourceSchemaCubeMeasureBuilder<TModel>

The PivotAjaxDataSourceSchemaCubeMeasureBuilder<TModel> object to support method chaining.

Sets the format applied to the calculated measure value.

C#
public PivotAjaxDataSourceSchemaCubeMeasureBuilder<TModel> Format(string format)
Parameters:formatstring

A numeric format string for the calculated value.

Returns:

PivotAjaxDataSourceSchemaCubeMeasureBuilder<TModel>

The PivotAjaxDataSourceSchemaCubeMeasureBuilder<TModel> object to support method chaining.

Sets an inline client-side function called after tuple aggregation to calculate the final measure value. Without a result function, the aggregate accumulator is used.

C#
public virtual PivotAjaxDataSourceSchemaCubeMeasureBuilder<TModel> Result(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The function that calculates the final value from the aggregate state.

Returns:

PivotAjaxDataSourceSchemaCubeMeasureBuilder<TModel>

The PivotAjaxDataSourceSchemaCubeMeasureBuilder<TModel> object to support method chaining.

Sets the name of a client-side function called after tuple aggregation to calculate the final measure value.

C#
public virtual PivotAjaxDataSourceSchemaCubeMeasureBuilder<TModel> Result(string result)
Parameters:resultstring

The name of the client-side result function.

Returns:

PivotAjaxDataSourceSchemaCubeMeasureBuilder<TModel>

The PivotAjaxDataSourceSchemaCubeMeasureBuilder<TModel> object to support method chaining.