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

Configures MVC-generated Ajax endpoints for PivotDataSource read and schema-discovery requests.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class PivotAjaxDataSourceTransportBuilder

Inheritance: objectPivotAjaxDataSourceTransportBuilder

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

Initializes an Ajax transport builder for the current view.

C#
public PivotAjaxDataSourceTransportBuilder(PivotTransport transport, ViewContext viewContext, IUrlGenerator urlGenerator)
Parameters:transportPivotTransportviewContextViewContexturlGeneratorIUrlGenerator

Fields

The transport being configured.

C#
protected readonly PivotTransport transport

The URL generator used for MVC endpoints.

C#
protected readonly IUrlGenerator urlGenerator

The current view context used to generate endpoint URLs.

C#
protected readonly ViewContext viewContext

Methods

Configures the MVC-generated URL and request settings for schema discovery.

C#
public PivotAjaxDataSourceTransportBuilder Discover(Action<CrudOperationBuilder> configurator)
Parameters:configuratorAction<CrudOperationBuilder>

Configures the discovery request.

Returns:

PivotAjaxDataSourceTransportBuilder

The PivotAjaxDataSourceTransportBuilder object to support method chaining.

Sets the controller, action, and route values used to generate the discovery URL.

C#
public PivotAjaxDataSourceTransportBuilder Discover(string actionName, string controllerName, object routeValues)
Parameters:actionNamestring

The controller action that returns schema information.

controllerNamestring

The controller containing the discovery action.

routeValuesobject

Optional values used to generate the URL.

Returns:

PivotAjaxDataSourceTransportBuilder

The PivotAjaxDataSourceTransportBuilder object to support method chaining.

Sets the controller and action used to generate the discovery URL.

C#
public PivotAjaxDataSourceTransportBuilder Discover(string actionName, string controllerName)
Parameters:actionNamestring

The controller action that returns schema information.

controllerNamestring

The controller containing the discovery action.

Returns:

PivotAjaxDataSourceTransportBuilder

The PivotAjaxDataSourceTransportBuilder object to support method chaining.

Configures the MVC-generated URL and request settings for reading flat data.

C#
public PivotAjaxDataSourceTransportBuilder Read(Action<CrudOperationBuilder> configurator)
Parameters:configuratorAction<CrudOperationBuilder>

Configures the read request.

Returns:

PivotAjaxDataSourceTransportBuilder

The PivotAjaxDataSourceTransportBuilder object to support method chaining.

Sets the controller, action, and route values used to generate the read URL.

C#
public PivotAjaxDataSourceTransportBuilder Read(string actionName, string controllerName, object routeValues)
Parameters:actionNamestring

The controller action that reads flat data.

controllerNamestring

The controller containing the read action.

routeValuesobject

Optional values used to generate the URL.

Returns:

PivotAjaxDataSourceTransportBuilder

The PivotAjaxDataSourceTransportBuilder object to support method chaining.

Sets the controller and action used to generate the read URL.

C#
public PivotAjaxDataSourceTransportBuilder Read(string actionName, string controllerName)
Parameters:actionNamestring

The controller action that reads flat data.

controllerNamestring

The controller containing the read action.

Returns:

PivotAjaxDataSourceTransportBuilder

The PivotAjaxDataSourceTransportBuilder object to support method chaining.

Generates and assigns the URL for a controller action and its route values.

C#
protected virtual void SetOperationUrl(CrudOperation operation, string actionName, string controllerName, object routeValues)
Parameters:operationCrudOperationactionNamestringcontrollerNamestringrouteValuesobject