Defines the fluent interface for configuring CRUD operations in a Custom DataSource.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class CustomCrudOperationBuilder : CrudOperationBuilderBase<CustomCrudOperationBuilder>
Inheritance: objectCrudOperationBuilderBase<CustomCrudOperationBuilder>CustomCrudOperationBuilder
Inherited Members
Constructors
Initializes a new instance of the CustomCrudOperationBuilder class.
public CustomCrudOperationBuilder(CrudOperation operation, ViewContext viewContext, IUrlGenerator urlGenerator)
The CRUD operation
viewContextViewContextThe view context
urlGeneratorIUrlGeneratorThe IUrlGenerator instance
Methods
Sets the cache option of the operation. If set to false, it will force requested pages not to be cached by the browser.
public CustomCrudOperationBuilder Cache(bool isEnabled)
Enable or disable the operation cache
Returns:The CustomCrudOperationBuilder instance for method chaining.
Sets the contentType option of the operation.
public CustomCrudOperationBuilder ContentType(string type)
contentType
Returns:The CustomCrudOperationBuilder instance for method chaining.
Sets the dataType option of the operation.
public CustomCrudOperationBuilder DataType(string type)
DataType of the operation
Returns:The CustomCrudOperationBuilder instance for method chaining.