PivotCustomDataSourceV2Builder

Methods

Schema(System.Action)

Configures the model and client cube schema used to interpret custom flat data for PivotGridV2.

Parameters

configurator - System.Action<PivotAjaxDataSourceSchemaBuilder>

The lambda that configures the DataSource schema settings.

RETURNS

Returns the current PivotCustomDataSourceV2Builder instance.

Example

Razor
 
            @(Html.Kendo().PivotGridV2()
                .Name("pivotgrid")
                .DataSource(dataSource => dataSource.Custom()
                    .Schema(schema => schema.Model(model => model.Id("ProductID")))
                )
            )
             

Filter(System.Action)

Adds initial filter descriptors for the custom data source.

Parameters

configurator - System.Action<DataSourceFilterDescriptorFactory>

The lambda that configures the DataSource filter settings.

RETURNS

Returns the current PivotCustomDataSourceV2Builder instance.

Example

Razor
 
            @(Html.Kendo().PivotGridV2<ProductViewModel>()
                .Name("pivotgrid")
                .BindTo(Model)
                .DataSource(dataSource => dataSource.Custom()
                    .Filter(f => f.Add(m => m.ProductName).Equals("Bread")))
                )
            )
             

Events(System.Action)

Registers client-side event handlers for data source operations.

Parameters

configurator - System.Action<DataSourceEventBuilder>

The action to configure the events.

RETURNS

The object to support method chaining.

Transport(System.Action)

Configures the custom transport used to read pivot data and discover schema information.

Parameters

configurator - System.Action<PivotCustomDataSourceTransportBuilder>

The action to configure the transport.

RETURNS

The object to support method chaining.

Columns(System.Action)

Configures the initial column-axis members by hierarchical name and expanded state.

Parameters

addColumnAction - System.Action<PivotDataSourceColumnFactory>

The action to configure the columns.

RETURNS

The object to support method chaining.

Rows(System.Action)

Configures the initial row-axis members by hierarchical name and expanded state.

Parameters

addRowAction - System.Action<PivotDataSourceRowFactory>

The action to configure the rows.

RETURNS

The object to support method chaining.

Measures(System.Action)

Configures the measures to load, their display axis, and optional KPI rendering types.

Parameters

configurator - System.Action<PivotDataSourceMeasureBuilder>

The action to configure the measures.

RETURNS

The object to support method chaining.

Filter(System.Action)

Adds initial filter descriptors for the custom data source.

Parameters

configurator - System.Action<DataSourceFilterDescriptorFactory>

The action to configure the filtering.

RETURNS

The object to support method chaining.