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

ReadOnlyDataSourceBuilder

Methods

Read(System.Action)

Configures the URL for Read operation.

Parameters

configurator - System.Action<CrudOperationBuilder>

Example


                    @(Html.Kendo().DropDownList()
                        .Name("ddl")
                        .DataSource(ds=> ds
                            .Read(r=>r.Action("Action", "Controller"))
                        )
                    )

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

Example


                    @(Html.Kendo().DropDownList()
                        .Name("ddl")
                        .DataSource(ds=> ds
                            .Read("Action", "Controller", new { })
                        )
                    )

Read(System.String,System.String)

Sets controller, action and routeValues for Read operation.

Parameters

actionName - System.String

Action name

controllerName - System.String

Controller Name

Example


                    @(Html.Kendo().DropDownList()
                        .Name("ddl")
                        .DataSource(ds=> ds
                            .Read("Action", "Controller")
                        )
                    )

ServerFiltering()

Specifies if filtering should be handled by the server.

Example


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

ServerFiltering(System.Boolean)

Specifies if filtering should be handled by the server.

Parameters

enabled - System.Boolean

Example


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

Events(System.Action)

Configures the client-side events

Parameters

configurator - System.Action<DataSourceEventBuilder>

The events configuration.

Example


                    @(Html.Kendo().DropDownList()
                        .Name("ddl")
                        .DataSource(ds=> ds
                             .Events(ev=>ev.Sync("onSync"))
                        )
                    )

Custom()

Use it to configure Custom binding.

Example


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

Ajax()

Use it to configure SignalR binding.

Example


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

SignalR()

Use it to configure SignalR binding.

Example


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

In this article
Not finding the help you need?