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"))
)
)
AccentFoldingFiltering(System.String)
Configures whether diacritic filtering should be used.
Parameters
culture - System.String
Example
@(Html.Kendo().DropDownList()
.Name("ddl")
.DataSource(ds=> ds
.AccentFoldingFiltering("de-DE")
)
)
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()
)
)
SignalR()
Use it to configure SignalR binding.
Example
@(Html.Kendo().DropDownList()
.Name("ddl")
.DataSource(ds=> ds
.SignalR()
)
)