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

Configures the measure names, display axis, and optional rendering types for a PivotDataSource.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class PivotDataSourceMeasureBuilder

Inheritance: objectPivotDataSourceMeasureBuilder

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

Constructors

Initializes a new instance of the PivotDataSourceMeasureBuilder class.

C#
public PivotDataSourceMeasureBuilder(PivotDataSourceMeasure measure)
Parameters:measurePivotDataSourceMeasure

The measure configuration to update.

Methods

Adds a measure descriptor with a name and optional rendering type. The type can be status or trend to use the corresponding KPI template; when omitted, the data cell template is used.

C#
public PivotDataSourceMeasuresBuilder Add()
Returns:

PivotDataSourceMeasuresBuilder

The PivotDataSourceMeasureBuilder object to support method chaining.

Sets whether measures are displayed on the rows or columns axis. The default is Columns; this setting applies when multiple measures are used.

C#
public PivotDataSourceMeasureBuilder Axis(PivotDataSourceMeasureAxis axis)
Parameters:axisPivotDataSourceMeasureAxis

The axis on which to display the measures.

Returns:

PivotDataSourceMeasureBuilder

The PivotDataSourceMeasureBuilder object to support method chaining.

Configures each measure descriptor, including its hierarchical name and optional rendering type. The supported types are status and trend; when no type is set, the data cell template is used.

C#
public PivotDataSourceMeasureBuilder Values(Action<PivotDataSourceMeasureDescriptorFactory> addAction)
Parameters:addActionAction<PivotDataSourceMeasureDescriptorFactory>

Configures the measure descriptors to load.

Returns:

PivotDataSourceMeasureBuilder

The PivotDataSourceMeasureBuilder object to support method chaining.

Sets the hierarchical names of the measures to load. Use this overload for name-only entries; use the descriptor overload to configure a rendering type for each measure.

C#
public PivotDataSourceMeasureBuilder Values(params string[] values)
Parameters:valuesstring[]

The hierarchical measure names to load.

Returns:

PivotDataSourceMeasureBuilder

The PivotDataSourceMeasureBuilder object to support method chaining.