Defines the fluent interface for configuring the CrudOperation options.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
TCrudOperationBuilder
Syntax:
public abstract class CrudOperationBuilderBase<TCrudOperationBuilder> where TCrudOperationBuilder : CrudOperationBuilderBase<TCrudOperationBuilder>
Inheritance: objectCrudOperationBuilderBase<TCrudOperationBuilder>
Derived Classes:
Inherited Members
Constructors
Initializes a new instance of the CrudOperationBuilderBase<TCrudOperationBuilder> class.
public CrudOperationBuilderBase(CrudOperation operation, ViewContext viewContext, IUrlGenerator urlGenerator)
Fields
operation member.
protected readonly CrudOperation operation
urlGenerator member.
protected readonly IUrlGenerator urlGenerator
viewContext member.
protected readonly ViewContext viewContext
Methods
Sets the action, contoller and route values for the operation.
Sets the action, contoller and route values for the operation.
public TCrudOperationBuilder Action(string actionName, string controllerName, RouteValueDictionary routeValues)
Action name
controllerNamestringController name
routeValuesRouteValueDictionaryRoute values
Returns:TCrudOperationBuilder
The TCrudOperationBuilder instance for method chaining.
Sets the action and contoller for the operation.
public TCrudOperationBuilder Action<TController>(Expression<Action<TController>> controllerAction) where TController : Controller
The controller action
Returns:TCrudOperationBuilder
The TCrudOperationBuilder instance for method chaining.
Sets a JavaScript function which will return additional parameters to be sent to the server.
public TCrudOperationBuilder Data(string handler)
JavaScript function name
Returns:TCrudOperationBuilder
The TCrudOperationBuilder instance for method chaining.
Specifies the HTTP headers.
public TCrudOperationBuilder Headers(IDictionary<string, string> headers)
TCrudOperationBuilder
The TCrudOperationBuilder instance for method chaining.
Specifies the HTTP headers.
public TCrudOperationBuilder Headers(object headers)
TCrudOperationBuilder
The TCrudOperationBuilder instance for method chaining.
Sets the route values for the operation.
public TCrudOperationBuilder Route(RouteValueDictionary routeValues)
Route values
Returns:TCrudOperationBuilder
The TCrudOperationBuilder instance for method chaining.
Sets the route name and values for the operation.
public TCrudOperationBuilder Route(string routeName, RouteValueDictionary routeValues)
Route name
routeValuesRouteValueDictionaryRoute values
Returns:TCrudOperationBuilder
The TCrudOperationBuilder instance for method chaining.
Sets the route name for the operation.
public TCrudOperationBuilder Route(string routeName)
TCrudOperationBuilder
The TCrudOperationBuilder instance for method chaining.
Specifies the HTTP verb of the request.
public TCrudOperationBuilder Type(HttpVerbs verb)
The HTTP verb
Returns:TCrudOperationBuilder
The TCrudOperationBuilder instance for method chaining.
Specifies an absolute or relative URL for the operation.
public TCrudOperationBuilder Url(string url)
Absolute or relative URL for the operation
Returns:TCrudOperationBuilder
The TCrudOperationBuilder instance for method chaining.