PivotCustomDataSourceV2Builder

Methods

Schema(System.Action)

Configures the schema of the custom DataSource

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)

Configures the initial filtering.

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)

Configures the client-side events

Parameters

configurator - System.Action<DataSourceEventBuilder>

The action to configure the events.

RETURNS

The object to support method chaining.

Transport(System.Action)

Configures the transport of the Custom DataSource

Parameters

configurator - System.Action<PivotCustomDataSourceTransportBuilder>

The action to configure the transport.

RETURNS

The object to support method chaining.

Columns(System.Action)

Sets the columns of the Custom DataSource.

Parameters

addColumnAction - System.Action<PivotDataSourceColumnFactory>

The action to configure the columns.

RETURNS

The object to support method chaining.

Rows(System.Action)

Sets the rows of the Custom DataSource.

Parameters

addRowAction - System.Action<PivotDataSourceRowFactory>

The action to configure the rows.

RETURNS

The object to support method chaining.

Measures(System.Action)

Sets the measures of the Custom DataSource.

Parameters

configurator - System.Action<PivotDataSourceMeasureBuilder>

The action to configure the measures.

RETURNS

The object to support method chaining.

Filter(System.Action)

Configures the initial filtering.

Parameters

configurator - System.Action<DataSourceFilterDescriptorFactory>

The action to configure the filtering.

RETURNS

The object to support method chaining.