Provides common fluent configuration for an Ajax-bound PivotDataSource.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
TModel
TBuilder
Syntax:
public abstract class PivotAjaxDataSourceBuilderBase<TModel, TBuilder> where TModel : class where TBuilder : PivotAjaxDataSourceBuilderBase<TModel, TBuilder>
Inheritance: objectPivotAjaxDataSourceBuilderBase<TModel, TBuilder>
Derived Classes:
Inherited Members
Constructors
Initializes shared Ajax configuration for the specified data source and MVC view context.
public PivotAjaxDataSourceBuilderBase(PivotDataSource dataSource, ViewContext viewContext, IUrlGenerator urlGenerator)
Fields
The PivotDataSource being configured.
protected readonly PivotDataSource dataSource
The URL generator used by the Ajax transport builder.
protected readonly IUrlGenerator urlGenerator
The current view context used by the Ajax transport builder.
protected readonly ViewContext viewContext
Methods
Configures the initial column-axis members by hierarchical name and expanded state.
public TBuilder Columns(Action<PivotDataSourceColumnFactory> addColumnAction)
The action to configure the columns.
Returns:TBuilder
The TBuilder object to support method chaining.
Registers client-side event handlers for data source operations.
public TBuilder Events(Action<DataSourceEventBuilder> configurator)
The action to configure the events.
Returns:TBuilder
The TBuilder object to support method chaining.
Adds initial filter descriptors for fields in the Ajax-bound model.
public TBuilder Filter(Action<DataSourceFilterDescriptorFactory<TModel>> configurator)
The action to configure the filtering.
Returns:TBuilder
The TBuilder object to support method chaining.
Sets the initial filter expression, including nested filter groups, for the Ajax-bound data source.
public TBuilder Filter(CompositeFilterDescriptor value)
The filter expression.
Returns:TBuilder
The TBuilder object to support method chaining.
Configures the measures to load, their display axis, and optional KPI rendering types.
public TBuilder Measures(Action<PivotDataSourceMeasureBuilder> configurator)
The action to configure the measures.
Returns:TBuilder
The TBuilder object to support method chaining.
Configures the initial row-axis members by hierarchical name and expanded state.
public TBuilder Rows(Action<PivotDataSourceRowFactory> addRowAction)
The action to configure the rows.
Returns:TBuilder
The TBuilder object to support method chaining.
Sets the initial sort descriptors for the Ajax-bound data source.
public TBuilder Sort(Action<DataSourceSortDescriptorFactory<TModel>> configurator)
The action to configure the sorting.
Returns:TBuilder
The TBuilder object to support method chaining.
Configures the Ajax endpoints used to read pivot data and discover schema information.
public TBuilder Transport(Action<PivotAjaxDataSourceTransportBuilder> configurator)
The action to configure the transport.
Returns:TBuilder
The TBuilder object to support method chaining.