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:
public class PivotAjaxDataSourceSchemaCubeMeasureBuilder<TModel> where TModel : class
Inheritance: objectPivotAjaxDataSourceSchemaCubeMeasureBuilder<TModel>
Inherited Members
Constructors
Initializes a builder for the specified cube measure.
public PivotAjaxDataSourceSchemaCubeMeasureBuilder(PivotDataSourceSchemaMeasureDescriptor measure)
Fields
The cube measure descriptor being configured.
protected readonly PivotDataSourceSchemaMeasureDescriptor measure
Methods
Sets an inline client-side function that aggregates measure values.
public virtual PivotAjaxDataSourceSchemaCubeMeasureBuilder<TModel> Aggregate(Func<object, object> handler)
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.
public virtual PivotAjaxDataSourceSchemaCubeMeasureBuilder<TModel> Aggregate(string aggregate)
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.
public virtual PivotAjaxDataSourceSchemaCubeMeasureBuilder<TModel> AggregateName(string aggregateName)
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.
public PivotAjaxDataSourceSchemaCubeMeasureBuilder<TModel> Caption(string caption)
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.
public PivotAjaxDataSourceSchemaCubeMeasureBuilder<TModel> Field(string member)
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.
public PivotAjaxDataSourceSchemaCubeMeasureBuilder<TModel> Field<TValue>(Expression<Func<TModel, TValue>> expression)
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.
public PivotAjaxDataSourceSchemaCubeMeasureBuilder<TModel> Format(string format)
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.
public virtual PivotAjaxDataSourceSchemaCubeMeasureBuilder<TModel> Result(Func<object, object> handler)
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.
public virtual PivotAjaxDataSourceSchemaCubeMeasureBuilder<TModel> Result(string result)
The name of the client-side result function.
Returns:PivotAjaxDataSourceSchemaCubeMeasureBuilder<TModel>
The PivotAjaxDataSourceSchemaCubeMeasureBuilder<TModel> object to support method chaining.