TreeListAjaxDataSourceBuilder
Methods
Model(System.Action)
Configures Model properties
Parameters
configurator - System.Action<DataSourceTreeListModelDescriptorFactory>
Aggregates(System.Action)
Configures the initial aggregates.
Parameters
aggregates - System.Action<DataSourceAggregateDescriptorFactory>
Sort(System.Action)
Configures the initial sorting.
Parameters
configurator - System.Action<DataSourceSortDescriptorFactory>
Group(System.Action)
Configures the initial grouping.
Parameters
configurator - System.Action<DataSourceGroupDescriptorFactory>
WebApi()
Use it to configure WebApi binding.
Example
@(Html.Kendo().Scheduler<Screening>()
.Name("scheduler")
.DataSource(ds=>ds.WebApi())
)
Custom()
Use it to configure Custom binding.
Example
@(Html.Kendo().Scheduler<Screening>()
.Name("scheduler")
.DataSource(ds=>ds.Custom())
)
SignalR()
Use it to configure SignalR binding.
Example
@(Html.Kendo().Scheduler<Screening>()
.Name("scheduler")
.DataSource(ds=>ds.SignalR())
)
Filter(System.Action)
Configures the initial filter.
Parameters
configurator - System.Action<DataSourceFilterDescriptorFactory>
Example
@(Html.Kendo().Scheduler<Screening>()
.Name("scheduler")
.DataSource(ds=>ds.Filter(f=>f.Add(s=>s.Description)))
)
Update(System.Action)
Configures the URL for Update operation.
Parameters
configurator - System.Action<CrudOperationBuilder>
Example
@(Html.Kendo().Scheduler<Screening>()
.Name("scheduler")
.DataSource(ds=>ds.Update(u=>u.Url("url")))
)
Update(System.String,System.String)
Sets controller and action for Update operation.
Parameters
actionName - System.String
Action name
controllerName - System.String
Controller Name
Example
@(Html.Kendo().Scheduler<Screening>()
.Name("scheduler")
.DataSource(ds=>ds.Update("Action", "Controller"))
)
Update(System.String,System.String,System.Object)
Sets controller, action and routeValues for Update operation.
Parameters
actionName - System.String
Action name
controllerName - System.String
Controller Name
routeValues - System.Object
Route values
Example
@(Html.Kendo().Scheduler<Screening>()
.Name("scheduler")
.DataSource(ds => ds.Update("Action", "Controller", new { }))
)
Create(System.Action)
Configures the URL for Create operation.
Parameters
configurator - System.Action<CrudOperationBuilder>
Example
@(Html.Kendo().Scheduler<Screening>()
.Name("scheduler")
.DataSource(ds=>ds.Create(u=>u.Url("url")))
)
Create(System.String,System.String)
Sets controller and action for Create operation.
Parameters
actionName - System.String
Action name
controllerName - System.String
Controller Name
Example
@(Html.Kendo().Scheduler<Screening>()
.Name("scheduler")
.DataSource(ds=>ds.Create("Action", "Controller"))
)
Create(System.String,System.String,System.Object)
Sets controller, action and routeValues for Create operation.
Parameters
actionName - System.String
Action name
controllerName - System.String
Controller Name
routeValues - System.Object
Route values
Example
@(Html.Kendo().Scheduler<Screening>()
.Name("scheduler")
.DataSource(ds => ds.Update("Action", "Controller", new { }))
)
Destroy(System.Action)
Configures the URL for Destroy operation.
Parameters
configurator - System.Action<CrudOperationBuilder>
Example
@(Html.Kendo().Scheduler<Screening>()
.Name("scheduler")
.DataSource(ds=>ds.Destroy(u=>u.Url("url")))
)
Destroy(System.String,System.String)
Sets controller and action for Destroy operation.
Parameters
actionName - System.String
Action name
controllerName - System.String
Controller Name
Example
@(Html.Kendo().Scheduler<Screening>()
.Name("scheduler")
.DataSource(ds => ds.Destroy("Action", "Controller"))
)
Destroy(System.String,System.String,System.Object)
Sets controller, action and routeValues for Destroy operation.
Parameters
actionName - System.String
Action name
controllerName - System.String
Controller Name
routeValues - System.Object
Route values
Example
@(Html.Kendo().Scheduler<Screening>()
.Name("scheduler")
.DataSource(ds => ds.Destroy("Action", "Controller", new { }))
)
Batch(System.Boolean)
Determines if modifications will be sent to the server in batches or as individually requests.
Parameters
enabled - System.Boolean
If true changes will be batched, otherwise false.
Example
@(Html.Kendo().Scheduler<Screening>()
.Name("scheduler")
.DataSource(ds => ds.Batch(true))
)
AutoSync(System.Boolean)
Determines if data source would automatically sync any changes to its data items. By default changes are not automatically sync-ed.
Parameters
enabled - System.Boolean
If true changes will be automatically synced, otherwise false.
Example
@(Html.Kendo().Scheduler<Screening>()
.Name("scheduler")
.DataSource(ds => ds.AutoSync(true))
)
Events(System.Action)
Configures the client-side events
Parameters
configurator - System.Action<DataSourceEventBuilder>
The lambda which configures the Update Action
Example
.DataSource(dataSource => dataSource
.Ajax()
.Events(e => e.Push("onDataSourcePush"))
)
Read(System.Action)
Configures the URL for Read operation.
Parameters
configurator - System.Action<CrudOperationBuilder>
The lambda which configures the Read Action
Example
.DataSource(dataSource => dataSource
.Ajax()
.Read(u => u.Action("Read", "Grid"))
)
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
.DataSource(dataSource => dataSource
.Ajax()
.Read("Read", "Grid", new { id = ViewData["id"] })
)
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
.DataSource(dataSource => dataSource
.Ajax()
.Read("Read", "Grid")
)
Total(System.Int32)
Sets the total number of records in the data source. Required during Custom binding.
Parameters
total - System.Int32
Number of records
Example
.DataSource(dataSource => dataSource
.Ajax()
.Total(50)
)
OfflineStorage(System.String)
Sets the key used for offline state persistance.
Parameters
key - System.String
Example
.DataSource(dataSource => dataSource
.Ajax()
.OfflineStorage("products-offline")
)
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.
Example
.DataSource(dataSource => dataSource
.Ajax()
.OfflineStorage("getItem", "setItem")
)
PageSize(System.Int32)
Sets the number of records displayed on a single page.
Parameters
pageSize - System.Int32
An integer value for the size of a Page in the DataSource
Example
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(20)
)
GroupPaging(System.Boolean)
Enables/disables group paging.
Parameters
enabled - System.Boolean
Example
.DataSource(dataSource => dataSource
.Ajax()
.GroupPaging(true)
)
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.
Example
.DataSource(dataSource => dataSource
.Ajax()
.ServerOperation(false)
)
Model(System.Action)
Configures Model properties
Parameters
configurator - System.Action<DataSourceModelDescriptorFactory>
The lambda which configures the Model instance
Example
.DataSource(dataSource => dataSource
.Ajax()
.Model(m => m.Id(o => o.OrderID))
)
CaseSensitiveFiltering()
When enabled filtering is case sensitive
Example
.DataSource(dataSource => dataSource
.Ajax()
.CaseSensitiveFiltering()
)