New to Telerik UI for ASP.NET Core? Download free 30-day trial

ReadOnlyAjaxDataSourceBuilder

Defines the fluent API for configuring a readon-only AJAX data source.

Methods

WebApi()

Use it to configure WebApi binding.

Example


                    @(Html.Kendo().DropDownList()
                        .Name("ddl")
                        .DataSource(ds=> ds
                            .WebApi())
                    )

Custom()

Use it to configure Custom binding.

Example


                    @(Html.Kendo().DropDownList()
                        .Name("ddl")
                        .DataSource(ds=> ds
                            .Custom())
                    )

SignalR()

Use it to configure SignalR binding.

Example


                    @(Html.Kendo().DropDownList()
                        .Name("ddl")
                        .DataSource(ds=> ds
                            .SignalR())
                    )

Events(System.Action)

Configures the client-side events

Parameters

configurator - System.Action<DataSourceEventBuilder>

Read(System.Action)

Configures the URL for Read operation.

Parameters

configurator - System.Action<CrudOperationBuilder>

Read(System.String,System.String,System.Object)

Sets controller and action for Read operation.

Parameters

actionName - System.String

Action name

controllerName - System.String

Controller Name

routeValues - System.Object

Route values

Read(System.String,System.String)

Sets controller, action and routeValues for Read operation.

Parameters

actionName - System.String

Action name

controllerName - System.String

Controller Name

Total(System.Int32)

Sets the total number of records in the data source. Required during Custom binding.

Parameters

total - System.Int32

Number of records

OfflineStorage(System.String)

Sets the key used for offline state persistance.

Parameters

key - System.String

AccentFoldingFiltering(System.String)

Configures whether diacritic filtering should be used.

Parameters

culture - System.String

OfflineStorage(System.String,System.String)

Specifies custom implementation for offline storage.

Parameters

getItem - System.String

The name of the JavaScript function which returns the offline state.

setItem - System.String

The name of the JavaScript function which saves the offline state.

PageSize(System.Int32)

Sets the number of records displayed on a single page.

Parameters

pageSize - System.Int32

GroupPaging(System.Boolean)

Enables/disables group paging.

Parameters

enabled - System.Boolean

ServerOperation(System.Boolean)

Sets the operation mode of the DataSource. By default the DataSource will make a request to the server when data for paging, sorting, filtering or grouping is needed. If set to false all data will be requested through single request. Any other paging, sorting, filtering or grouping will be performed client-side.

Parameters

enabled - System.Boolean

True(default) if server operation mode is enabled, otherwise false.

Sort(System.Action)

Configures the initial sorting.

Parameters

configurator - System.Action<DataSourceSortDescriptorFactory>

Group(System.Action)

Configures the initial grouping.

Parameters

configurator - System.Action<DataSourceGroupDescriptorFactory>

Aggregates(System.Action)

Configures the initial aggregates.

Parameters

aggregates - System.Action<DataSourceAggregateDescriptorFactory>

Filter(System.Action)

Configures the initial filter.

Parameters

configurator - System.Action<DataSourceFilterDescriptorFactory>

Model(System.Action)

Configures Model properties

Parameters

configurator - System.Action<DataSourceModelDescriptorFactory>
In this article
Not finding the help you need?