Provides a base class for custom data source builders with common configuration options.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
TCustomDataSourceBuilder
The type of the custom data source builder.
Syntax:
public abstract class CustomDataSourceBuilderBase<TCustomDataSourceBuilder> where TCustomDataSourceBuilder : CustomDataSourceBuilderBase<TCustomDataSourceBuilder>
Inheritance: objectCustomDataSourceBuilderBase<TCustomDataSourceBuilder>
Derived Classes:
Inherited Members
Constructors
public CustomDataSourceBuilderBase(DataSource dataSource, ViewContext viewContext, IUrlGenerator urlGenerator)
Fields
protected readonly DataSource dataSource
protected readonly IUrlGenerator urlGenerator
viewContext
ViewContext
protected readonly ViewContext viewContext
Methods
Configures whether diacritic filtering should be used.
public TCustomDataSourceBuilder AccentFoldingFiltering(string culture)
The culture applied for the Action
Returns:TCustomDataSourceBuilder
Determines if data source would automatically sync any changes to its data items. By default changes are not automatically sync-ed.
public virtual TCustomDataSourceBuilder AutoSync(bool enabled)
If true changes will be automatically synced, otherwise false.
Returns:TCustomDataSourceBuilder
Determines if modifications will be sent to the server in batches or as individually requests.
public virtual TCustomDataSourceBuilder Batch(bool enabled)
If true changes will be batched, otherwise false.
Returns:TCustomDataSourceBuilder
Configures the client-side events
public TCustomDataSourceBuilder Events(Action<DataSourceEventBuilder> configurator)
The lambda which configures the Update Action
Returns:TCustomDataSourceBuilder
Determines if group paging is enabled.
public virtual TCustomDataSourceBuilder GroupPaging(bool enabled)
If true, group paging is enabled.
Returns:TCustomDataSourceBuilder
Sets the page of the DataSource.
public TCustomDataSourceBuilder Page(int page)
Sets the page value
Returns:TCustomDataSourceBuilder
Sets the number of records displayed on a single page.
public TCustomDataSourceBuilder PageSize(int pageSize)
An integer value for the size of a Page in the Custom DataSource
Returns:TCustomDataSourceBuilder
Enables or disables server aggregates. If enabled the data source will expect the aggregates to be calculated server-side.
public TCustomDataSourceBuilder ServerAggregates(bool enabled)
True to enable server aggregates; otherwise false (the default).
Returns:TCustomDataSourceBuilder
Enables or disables server filtering mode. If enabled the data source will make a request during filtering.
public TCustomDataSourceBuilder ServerFiltering(bool enabled)
True to enable server filtering; otherwise false (the default).
Returns:TCustomDataSourceBuilder
Enables or disables server grouping mode. If enabled the data source will make a request during grouping.
public TCustomDataSourceBuilder ServerGrouping(bool enabled)
True to enable server grouping; otherwise false (the default).
Returns:TCustomDataSourceBuilder
Enables or disables server paging mode. If enabled the data source will make a request during paging.
public TCustomDataSourceBuilder ServerPaging(bool enabled)
True to enable server paging; otherwise false (the default).
Returns:TCustomDataSourceBuilder
Enables or disables server sorting mode. If enabled the data source will make a request during paging.
public TCustomDataSourceBuilder ServerSorting(bool enabled)
True to enable server sorting; otherwise false (the default).
Returns:TCustomDataSourceBuilder
Sets the total number of records in the data source. Required during Custom binding.
public TCustomDataSourceBuilder Total(int total)
Number of records
Returns:TCustomDataSourceBuilder
Sets the transport of the DataSource using anonymous object.
public TCustomDataSourceBuilder Transport(object settings)
TCustomDataSourceBuilder
Sets the type of the data source.
public TCustomDataSourceBuilder Type(string type)
If set, the data source will use a predefined transport and/or schema.
Returns:TCustomDataSourceBuilder