SignalRDataSourceTransportBuilderBase
Methods
ParameterMap(System.Func)
Sets the parameterMap function.
Parameters
handler - System.Func<Object,Object>
RETURNS
A instance for method chaining.
Example
Razor
 
                @(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
RETURNS
A instance for method chaining.
Example
Razor
 
                @(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>
RETURNS
A instance for method chaining.
Example
Razor
 
                @(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
RETURNS
A instance for method chaining.
Example
Razor
 
                @(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>
RETURNS
A instance for method chaining.
Example
Razor
 
                @(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
RETURNS
A instance for method chaining.
Example
Razor
 
                @(Html.Kendo().DataSource<OrderViewModel>()
                                .Name("ds")
                                 .SignalR(x=> {
                                    x.Transport(t=> {
                                        t.Promise("Promise");
                                    });
                                })
                )