# SchedulerAjaxDataSourceBuilder

## Methods

### Model(System.Action)

Configures Model properties

#### Parameters

##### configurator - System.Action<[DataSourceSchedulerModelDescriptorFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/datasourceschedulermodeldescriptorfactory)>

The lambda which configures the Model

#### RETURNS

Returns the current [SchedulerAjaxDataSourceBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/schedulerajaxdatasourcebuilder) instance.

#### Example

```
 
                @(Html.Kendo().Scheduler<Activity>()
                    .Name("scheduler")
                    .DataSource(ds =>
                    {
                        ds.Model(m => m.Id(s => s.ID));
                    })
                )
             
```

### WebApi()

Use it to configure WebApi binding.

#### RETURNS

A [FilterableWebApiDataSourceBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/filterablewebapidatasourcebuilder) instance for method chaining.

#### Example

```
 
                    @(Html.Kendo().Scheduler<Screening>()
                        .Name("scheduler")
                        .DataSource(ds=>ds.WebApi())
                    )
             
```

### Custom()

Use it to configure Custom binding.

#### RETURNS

A [FilterableCustomDataSourceBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/filterablecustomdatasourcebuilder) instance for method chaining.

#### Example

```
 
                    @(Html.Kendo().Scheduler<Screening>()
                        .Name("scheduler")
                        .DataSource(ds=>ds.Custom())
                    )
             
```

### SignalR()

Use it to configure SignalR binding.

#### RETURNS

A [FilterableSignalRDataSourceBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/filterablesignalrdatasourcebuilder) instance for method chaining.

#### Example

```
 
                    @(Html.Kendo().Scheduler<Screening>()
                        .Name("scheduler")
                        .DataSource(ds=>ds.SignalR())
                    )
             
```

### Filter(System.Action)

Configures the initial filter.

#### Parameters

##### configurator - System.Action<[DataSourceFilterDescriptorFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/datasourcefilterdescriptorfactory)>

#### RETURNS

A  instance for method chaining.

#### Example

```
 
                    @(Html.Kendo().Scheduler<Screening>()
                        .Name("scheduler")
                        .DataSource(ds=>ds.Filter(f=>f.Add(s=>s.Description)))
                    )
             
```

### Sort(System.Action)

Sort method.

#### Parameters

##### configurator - System.Action<[DataSourceSortDescriptorFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/datasourcesortdescriptorfactory)>

### Group(System.Action)

Group method.

#### Parameters

##### configurator - System.Action<[DataSourceGroupDescriptorFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/datasourcegroupdescriptorfactory)>

### Aggregates(System.Action)

Aggregates method.

#### Parameters

##### aggregates - System.Action<[DataSourceAggregateDescriptorFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/datasourceaggregatedescriptorfactory)>

### Update(System.Action)

Configures the URL for Update operation.

#### Parameters

##### configurator - System.Action<[CrudOperationBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/crudoperationbuilder)>

#### RETURNS

A  instance for method chaining.

#### 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

#### RETURNS

A  instance for method chaining.

#### 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

#### RETURNS

A  instance for method chaining.

#### 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](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/crudoperationbuilder)>

#### RETURNS

A  instance for method chaining.

#### 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

#### RETURNS

A  instance for method chaining.

#### 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

#### RETURNS

A  instance for method chaining.

#### 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](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/crudoperationbuilder)>

#### RETURNS

A  instance for method chaining.

#### 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

#### RETURNS

A  instance for method chaining.

#### 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

#### RETURNS

A  instance for method chaining.

#### 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.

#### RETURNS

A  instance for method chaining.

#### 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.

#### RETURNS

A  instance for method chaining.

#### 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](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/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](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/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](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/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()
            )
             
```
