Configures the measure names, display axis, and optional rendering types for a PivotDataSource.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class PivotDataSourceMeasureBuilder
Inheritance: objectPivotDataSourceMeasureBuilder
Inherited Members
Constructors
Initializes a new instance of the PivotDataSourceMeasureBuilder class.
public PivotDataSourceMeasureBuilder(PivotDataSourceMeasure measure)
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.
public PivotDataSourceMeasuresBuilder Add()
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.
public PivotDataSourceMeasureBuilder Axis(PivotDataSourceMeasureAxis axis)
The axis on which to display the measures.
Returns: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.
public PivotDataSourceMeasureBuilder Values(Action<PivotDataSourceMeasureDescriptorFactory> addAction)
Configures the measure descriptors to load.
Returns: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.
public PivotDataSourceMeasureBuilder Values(params string[] values)
The hierarchical measure names to load.
Returns:The PivotDataSourceMeasureBuilder object to support method chaining.