Defines the fluent interface for configuring the HierarchicalDataSource/>.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
TModel
Syntax:
public class FileManagerDataSourceBuilder<TModel> where TModel : class
Inheritance: objectFileManagerDataSourceBuilder<TModel>
Inherited Members
Constructors
Initializes a new instance of the FileManagerDataSourceBuilder<TModel> class.
public FileManagerDataSourceBuilder(DataSource dataSource, ViewContext viewContext, IUrlGenerator urlGenerator)
Methods
Configures the URL for Create operation.
public FileManagerDataSourceBuilder<TModel> Create(Action<CrudOperationBuilder> configurator)
Configures the Create operation settings.
Returns:FileManagerDataSourceBuilder<TModel>
Returns the current FileManagerDataSourceBuilder<TModel> instance.
Sets controller, action and routeValues for Create operation.
public FileManagerDataSourceBuilder<TModel> Create(string actionName, string controllerName, object routeValues)
Action name
controllerNamestringController Name
routeValuesobjectRoute values
Returns:FileManagerDataSourceBuilder<TModel>
Returns the current FileManagerDataSourceBuilder<TModel> instance.
Sets controller and action for Create operation.
public FileManagerDataSourceBuilder<TModel> Create(string actionName, string controllerName)
Action name
controllerNamestringController Name
Returns:FileManagerDataSourceBuilder<TModel>
Returns the current FileManagerDataSourceBuilder<TModel> instance.
Use it to configure Custom binding.
public CustomFileManagerDataSourceBuilder Custom()
CustomFileManagerDataSourceBuilder
Returns a CustomFileManagerDataSourceBuilder instance for configuring the component's DataSource.
Configures the URL for Destroy operation.
public FileManagerDataSourceBuilder<TModel> Destroy(Action<CrudOperationBuilder> configurator)
Configures the Destroy operation settings.
Returns:FileManagerDataSourceBuilder<TModel>
Returns the current FileManagerDataSourceBuilder<TModel> instance.
Sets controller, action and routeValues for Destroy operation.
public FileManagerDataSourceBuilder<TModel> Destroy(string actionName, string controllerName, object routeValues)
Action name
controllerNamestringController Name
routeValuesobjectRoute values
Returns:FileManagerDataSourceBuilder<TModel>
Returns the current FileManagerDataSourceBuilder<TModel> instance.
Sets controller and action for Destroy operation.
public FileManagerDataSourceBuilder<TModel> Destroy(string actionName, string controllerName)
Action name
controllerNamestringController Name
Returns:FileManagerDataSourceBuilder<TModel>
Returns the current FileManagerDataSourceBuilder<TModel> instance.
Configures the client-side events
public FileManagerDataSourceBuilder<TModel> Events(Action<DataSourceEventBuilder> configurator)
Configures the events for the DataSource.
Returns:FileManagerDataSourceBuilder<TModel>
Returns the current FileManagerDataSourceBuilder<TModel> instance.
Configures the model
public FileManagerDataSourceBuilder<TModel> Model(Action<FileManagerModelDescriptorBuilder<object>> configurator)
Configures the Model of the DataSource.
Returns:FileManagerDataSourceBuilder<TModel>
Returns the current FileManagerDataSourceBuilder<TModel> instance.
Configures the URL for Read operation.
public FileManagerDataSourceBuilder<TModel> Read(Action<CrudOperationBuilder> configurator)
FileManagerDataSourceBuilder<TModel>
Returns the current FileManagerDataSourceBuilder<TModel> instance.
Sets controller, action and routeValues for Read operation.
public FileManagerDataSourceBuilder<TModel> Read(string actionName, string controllerName, object routeValues)
Action name
controllerNamestringController Name
routeValuesobjectRoute values
Returns:FileManagerDataSourceBuilder<TModel>
Returns the current FileManagerDataSourceBuilder<TModel> instance.
Sets controller and action for Read operation.
public FileManagerDataSourceBuilder<TModel> Read(string actionName, string controllerName)
Action name
controllerNamestringController Name
Returns:FileManagerDataSourceBuilder<TModel>
Returns the current FileManagerDataSourceBuilder<TModel> instance.
Specifies if filtering should be handled by the server.
public FileManagerDataSourceBuilder<TModel> ServerFiltering()
FileManagerDataSourceBuilder<TModel>
Returns the current FileManagerDataSourceBuilder<TModel> instance.
Specifies if filtering should be handled by the server.
public FileManagerDataSourceBuilder<TModel> ServerFiltering(bool enabled)
FileManagerDataSourceBuilder<TModel>
Returns the current FileManagerDataSourceBuilder<TModel> instance.
SetOperationUrl method.
protected virtual void SetOperationUrl(CrudOperation operation, string actionName, string controllerName, object routeValues)
Configures the URL for Update operation.
public FileManagerDataSourceBuilder<TModel> Update(Action<CrudOperationBuilder> configurator)
COnfigures the Update operation settings.
Returns:FileManagerDataSourceBuilder<TModel>
Returns the current FileManagerDataSourceBuilder<TModel> instance.
Sets controller, action and routeValues for Update operation.
public FileManagerDataSourceBuilder<TModel> Update(string actionName, string controllerName, object routeValues)
Action name
controllerNamestringController Name
routeValuesobjectRoute values
Returns:FileManagerDataSourceBuilder<TModel>
Returns the current FileManagerDataSourceBuilder<TModel> instance.
Sets controller and action for Update operation.
public FileManagerDataSourceBuilder<TModel> Update(string actionName, string controllerName)
Action name
controllerNamestringController Name
Returns:FileManagerDataSourceBuilder<TModel>
Returns the current FileManagerDataSourceBuilder<TModel> instance.