# SignalRDataSourceBuilder

## Methods

### Transport(System.Action)

Configures the transport of the DataSource

#### Parameters

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

The transport configuration

#### RETURNS

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

#### Example

```
 
                @(Html.Kendo().DataSource<OrderViewModel>()
                                   .Name("ds")
                                   .SignalR(s=>s.Transport(t=> {
                                        t.Hub("methodName");
                                   }))
                   )
             
```

### Schema(System.Action)

Configures Schema properties

#### Parameters

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

The schema configuration

#### RETURNS

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

#### Example

```
 
                @(Html.Kendo().DataSource<OrderViewModel>()
                                   .Name("ds")
                                   .Schema(t=> {
                                       t.Data("Data");
                                   }))
             
```

### Sort(System.Action)

Configures the initial sorting.

#### Parameters

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

The sorting configuration

#### RETURNS

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

#### Example

```
 
                   @(Html.Kendo().DataSource<OrderViewModel>()
                                   .Name("ds")
                                   .SignalR(s=>s
                                   .Sort(sr=>sr.Add(x=>x.ContactName).Ascending()))
                   )
             
```

### Group(System.Action)

Configures the initial grouping.

#### Parameters

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

The grouping configuration

#### RETURNS

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

#### Example

```
 
                   @(Html.Kendo().DataSource<OrderViewModel>()
                                   .Name("ds")
                                   .SignalR(s=>s
                                   .Group(sr=>sr.Add(x=>x.ContactName)))
                   )
             
```

### Aggregates(System.Action)

Configures the initial aggregates.

#### Parameters

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

The aggregates configuration

#### RETURNS

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

#### Example

```
 
                   @(Html.Kendo().DataSource<OrderViewModel>()
                                   .Name("ds")
                                   .SignalR(s=>s
                                   .Aggregates(sr=>sr.Add(x=>x.ContactName).Count()))
                   )
             
```

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

The filtering configuration

#### RETURNS

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

#### Example

```
 
                   @(Html.Kendo().DataSource<OrderViewModel>()
                                   .Name("ds")
                                   .SignalR(s=>s
                                   .Filter(sr=>sr.Add(x=>x.ContactName).Contains("Test")))
                   )
             
```

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

#### RETURNS

A  instance for method chaining.

#### Example

```
 
                @(Html.Kendo().DataSource<OrderViewModel>()
                                   .Name("ds")
                                   .SignalR(s=>s.Transport(t=> {
                                       t.Hub("HubName");
                                   })
                                   .Events(e=>e.RequestEnd("onRequestEnd"))
                    ))
             
```

### Total(System.Int32)

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

#### Parameters

##### total - `System.Int32`

Number of records

#### RETURNS

A  instance for method chaining.

#### Example

```
 
                @(Html.Kendo().DataSource<OrderViewModel>()
                                   .Name("ds")
                                   .SignalR(s=>s.Transport(t=> {
                                       t.Hub("HubName");
                                   })
                                   .Total(20)
                    ))
             
```

### PageSize(System.Int32)

Sets the number of records displayed on a single page.

#### Parameters

##### pageSize - `System.Int32`

The count of records on a page.

#### RETURNS

A  instance for method chaining.

#### Example

```
 
                @(Html.Kendo().DataSource<OrderViewModel>()
                                   .Name("ds")
                                   .SignalR(s=>s.Transport(t=> {
                                       t.Hub("HubName");
                                   })
                                   .PageSize(20)
                    ))
             
```

### Page(System.Int32)

Sets the page of the DataSource.

#### Parameters

##### page - `System.Int32`

The current page.

#### RETURNS

A  instance for method chaining.

#### Example

```
 
                @(Html.Kendo().DataSource<OrderViewModel>()
                                   .Name("ds")
                                   .SignalR(s=>s.Transport(t=> {
                                       t.Hub("HubName");
                                   })
                                   .Page(20)
                    ))
             
```

### AccentFoldingFiltering(System.String)

Configures whether diacritic filtering should be used.

#### Parameters

##### culture - `System.String`

The used culture.

#### RETURNS

A  instance for method chaining.

#### Example

```
 
                @(Html.Kendo().DataSource<OrderViewModel>()
                                   .Name("ds")
                                   .SignalR(s=>s.Transport(t=> {
                                       t.Hub("HubName");
                                   })
                                   .AccentFoldingFiltering("de-DE")
                    ))
             
```

### ServerPaging(System.Boolean)

Enables or disables server paging mode. If enabled the data source will make a request during paging.

#### Parameters

##### enabled - `System.Boolean`

True to enable server paging; otherwise false (the default).

#### RETURNS

A  instance for method chaining.

#### Example

```
 
                @(Html.Kendo().DataSource<OrderViewModel>()
                                   .Name("ds")
                                   .SignalR(s=>s.Transport(t=> {
                                       t.Hub("HubName");
                                   })
                                   .ServerPaging(true)
                    ))
             
```

### ServerSorting(System.Boolean)

Enables or disables server sorting mode. If enabled the data source will make a request during paging.

#### Parameters

##### enabled - `System.Boolean`

True to enable server sorting; otherwise false (the default).

#### RETURNS

A  instance for method chaining.

#### Example

```
 
                @(Html.Kendo().DataSource<OrderViewModel>()
                                   .Name("ds")
                                   .SignalR(s=>s.Transport(t=> {
                                       t.Hub("HubName");
                                   })
                                   .ServerSorting(true)
                    ))
             
```

### ServerFiltering(System.Boolean)

Enables or disables server filtering mode. If enabled the data source will make a request during filtering.

#### Parameters

##### enabled - `System.Boolean`

True to enable server filtering; otherwise false (the default).

#### RETURNS

A  instance for method chaining.

#### Example

```
 
                @(Html.Kendo().DataSource<OrderViewModel>()
                                   .Name("ds")
                                   .SignalR(s=>s.Transport(t=> {
                                       t.Hub("HubName");
                                   })
                                   .ServerFiltering(true)
                    ))
             
```

### ServerGrouping(System.Boolean)

Enables or disables server grouping mode. If enabled the data source will make a request during grouping.

#### Parameters

##### enabled - `System.Boolean`

True to enable server grouping; otherwise false (the default).

#### RETURNS

A  instance for method chaining.

#### Example

```
 
                @(Html.Kendo().DataSource<OrderViewModel>()
                                   .Name("ds")
                                   .SignalR(s=>s.Transport(t=> {
                                       t.Hub("HubName");
                                   })
                                   .ServerGrouping(true)
                    ))
             
```

### ServerAggregates(System.Boolean)

Enables or disables server aggregates. If enabled the data source will expect the aggregates to be calculated server-side.

#### Parameters

##### enabled - `System.Boolean`

True to enable server aggregates; otherwise false (the default).

#### RETURNS

A  instance for method chaining.

#### Example

```
 
                @(Html.Kendo().DataSource<OrderViewModel>()
                                   .Name("ds")
                                   .SignalR(s=>s.Transport(t=> {
                                       t.Hub("HubName");
                                   })
                                   .ServerAggregates(true)
                    ))
             
```

### 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().DataSource<OrderViewModel>()
                                   .Name("ds")
                                   .SignalR(s=>s.Transport(t=> {
                                       t.Hub("HubName");
                                   })
                                   .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().DataSource<OrderViewModel>()
                                   .Name("ds")
                                   .SignalR(s=>s.Transport(t=> {
                                       t.Hub("HubName");
                                   })
                                   .AutoSync(true)
                    ))
             
```

### Transport(System.Object)

Sets the transport of the DataSource using anonymous object.

#### Parameters

##### settings - `System.Object`

#### RETURNS

A  instance for method chaining.

#### Example

```
 
                @(Html.Kendo().DataSource<OrderViewModel>()
                                   .Name("ds")
                                   .SignalR(s=>s.Transport(t=> {
                                       t.Hub("HubName");
                                   })
                                   .Transport(new { })
                    ))
             
```
