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

SignalRDataSourceTransportBuilder

Methods

Client(System.Action)

Configures the client-side CRUD methods of the SignalR hub.

Parameters

configurator - System.Action<SignalRCrudOperationsBuilder>

The client configuration.

Example


                @(Html.Kendo().DataSource<OrderViewModel>()
                                .Name("ds")
                                 .SignalR(x=> {
                                    x.Transport(t=> {
                                        t.Client(c=>c.Read("methodName"));
                                    });
                                })
                )

Client(System.Object)

Parameters

settings - System.Object

Server(System.Action)

Configures the server-side CRUD methods of the SignalR hub.

Parameters

configurator - System.Action<SignalRCrudOperationsBuilder>

The server configuration.

Example


                @(Html.Kendo().DataSource<OrderViewModel>()
                                .Name("ds")
                                 .SignalR(x=> {
                                    x.Transport(t=> {
                                        .Server(c=>c.Read("methodName"));
                                    });
                                })
                )

Server(System.Object)

Configures the server-side CRUD methods of the SignalR hub.

Parameters

settings - System.Object

The server configuration setting.

Example


                @(Html.Kendo().DataSource<OrderViewModel>()
                                .Name("ds")
                                 .SignalR(x=> {
                                    x.Transport(t=> {
                                        t.Server(new { });
                                    });
                                })
                )

ParameterMap(System.Func)

Sets the parameterMap function.

Parameters

handler - System.Func<Object,Object>

Example


                @(Html.Kendo().DataSource<OrderViewModel>()
                                .Name("ds")
                                 .SignalR(x=> {
                                    x.Transport(t=> {
                                        t.ParameterMap(p => "handlerName");
                                    });
                                })
                )

ParameterMap(System.String)

Sets the parameterMap function.

Parameters

handler - System.String

JavaScript function name

Example


                @(Html.Kendo().DataSource<OrderViewModel>()
                                .Name("ds")
                                 .SignalR(x=> {
                                    x.Transport(t=> {
                                        t.ParameterMap("handlerName");
                                    });
                                })
                )

Hub(System.Func)

The SignalR hub object returned by the createHubProxy method. The hub option is mandatory

Parameters

handler - System.Func<Object,Object>

Example


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

Hub(System.String)

The SignalR hub object returned by the createHubProxy method. The hub option is mandatory

Parameters

handler - System.String

JavaScript function name

Example


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

Promise(System.Func)

The promise returned by the start method of the SignalR connection. The promise option is mandatory.

Parameters

handler - System.Func<Object,Object>

Example


                @(Html.Kendo().DataSource<OrderViewModel>()
                                .Name("ds")
                                 .SignalR(x=> {
                                    x.Transport(t=> {
                                        t.Promise(p => "Promise");
                                    });
                                })
                )

Promise(System.String)

The promise returned by the start method of the SignalR connection. The promise option is mandatory.

Parameters

handler - System.String

JavaScript function name

Example


                @(Html.Kendo().DataSource<OrderViewModel>()
                                .Name("ds")
                                 .SignalR(x=> {
                                    x.Transport(t=> {
                                        t.Promise("Promise");
                                    });
                                })
                )

In this article
Not finding the help you need?