Configures MVC-generated Ajax endpoints for PivotDataSource read and schema-discovery requests.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class PivotAjaxDataSourceTransportBuilder
Inheritance: objectPivotAjaxDataSourceTransportBuilder
Inherited Members
Constructors
Initializes an Ajax transport builder for the current view.
public PivotAjaxDataSourceTransportBuilder(PivotTransport transport, ViewContext viewContext, IUrlGenerator urlGenerator)
Fields
The transport being configured.
protected readonly PivotTransport transport
The URL generator used for MVC endpoints.
protected readonly IUrlGenerator urlGenerator
The current view context used to generate endpoint URLs.
protected readonly ViewContext viewContext
Methods
Configures the MVC-generated URL and request settings for schema discovery.
public PivotAjaxDataSourceTransportBuilder Discover(Action<CrudOperationBuilder> configurator)
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.
public PivotAjaxDataSourceTransportBuilder Discover(string actionName, string controllerName, object routeValues)
The controller action that returns schema information.
controllerNamestringThe controller containing the discovery action.
routeValuesobjectOptional 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.
public PivotAjaxDataSourceTransportBuilder Discover(string actionName, string controllerName)
The controller action that returns schema information.
controllerNamestringThe 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.
public PivotAjaxDataSourceTransportBuilder Read(Action<CrudOperationBuilder> configurator)
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.
public PivotAjaxDataSourceTransportBuilder Read(string actionName, string controllerName, object routeValues)
The controller action that reads flat data.
controllerNamestringThe controller containing the read action.
routeValuesobjectOptional 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.
public PivotAjaxDataSourceTransportBuilder Read(string actionName, string controllerName)
The controller action that reads flat data.
controllerNamestringThe 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.
protected virtual void SetOperationUrl(CrudOperation operation, string actionName, string controllerName, object routeValues)