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

SignalRDataSourceTransportBuilderBase

Methods

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?