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
public CrudOperationBuilderBase(CrudOperation operation, ViewContext viewContext, IUrlGenerator urlGenerator)
Fields
protected readonly CrudOperation operation
protected readonly IUrlGenerator urlGenerator
viewContext
ViewContext
protected readonly ViewContext viewContext
Methods
Sets the action, contoller and route values for the operation.
public TCrudOperationBuilder Action<TController>(Expression<Action<TController>> controllerAction) where TController : Controller
TCrudOperationBuilder
Sets JavaScript function which to return additional parameters which to be sent the server.
public TCrudOperationBuilder Data(string handler)
JavaScript function name
Returns:TCrudOperationBuilder
Specifies the HTTP headers.
public TCrudOperationBuilder Headers(IDictionary<string, string> headers)
TCrudOperationBuilder
Specifies the HTTP headers.
public TCrudOperationBuilder Headers(object headers)
TCrudOperationBuilder
Sets the route values for the operation.
public TCrudOperationBuilder Route(RouteValueDictionary routeValues)
Route values
Returns:TCrudOperationBuilder
Sets the route name and values for the operation.
public TCrudOperationBuilder Route(string routeName, RouteValueDictionary routeValues)
Route name
routeValuesRouteValueDictionaryRoute values
Returns:TCrudOperationBuilder
Sets the route name for the operation.
public TCrudOperationBuilder Route(string routeName)
TCrudOperationBuilder
Specifies the HTTP verb of the request.
public TCrudOperationBuilder Type(HttpVerbs verb)
The HTTP verb
Returns:TCrudOperationBuilder
Specifies an absolute or relative URL for the operation.
public TCrudOperationBuilder Url(string url)
Absolute or relative URL for the operation
Returns:TCrudOperationBuilder