Defines the fluent interface for configuring the DataSource AJAX create/update/destroy operation bindings.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
TModel
Syntax:
public class OrgChartAjaxDataSourceBuilder<TModel> : AjaxDataSourceBuilderBase<TModel, OrgChartAjaxDataSourceBuilder<TModel>> where TModel : class
Inheritance: objectAjaxDataSourceBuilderBase<TModel, OrgChartAjaxDataSourceBuilder<TModel>>OrgChartAjaxDataSourceBuilder<TModel>
Inherited Members
Constructors
Creates new instance of the OrgChartAjaxDataSourceBuilder class.
public OrgChartAjaxDataSourceBuilder(DataSource dataSource, ViewContext viewContext, IUrlGenerator urlGenerator)
The DataSource
viewContextViewContextThe ViewContext
urlGeneratorIUrlGeneratorThe IUrlGenerator
Methods
Determines if data source would automatically sync any changes to its data items. By default changes are not automatically sync-ed.
public virtual OrgChartAjaxDataSourceBuilder<TModel> AutoSync(bool enabled)
If true changes will be automatically synced, otherwise false.
Returns:OrgChartAjaxDataSourceBuilder<TModel>
Returns the current OrgChartAjaxDataSourceBuilder<TModel> instance.
Determines if modifications will be sent to the server in batches or as individually requests.
public virtual OrgChartAjaxDataSourceBuilder<TModel> Batch(bool enabled)
If true changes will be batched, otherwise false.
Returns:OrgChartAjaxDataSourceBuilder<TModel>
Returns the current OrgChartAjaxDataSourceBuilder<TModel> instance.
Configures the URL for Create operation.
public OrgChartAjaxDataSourceBuilder<TModel> Create(Action<CrudOperationBuilder> configurator)
The lambda which configures the Create Action
Returns:OrgChartAjaxDataSourceBuilder<TModel>
Returns the current OrgChartAjaxDataSourceBuilder<TModel> instance.
Sets controller, action and routeValues for Create operation.
public OrgChartAjaxDataSourceBuilder<TModel> Create(string actionName, string controllerName, object routeValues)
Action name
controllerNamestringController Name
routeValuesobjectRoute values
Returns:OrgChartAjaxDataSourceBuilder<TModel>
Returns the current OrgChartAjaxDataSourceBuilder<TModel> instance.
Sets controller and action for Create operation.
public OrgChartAjaxDataSourceBuilder<TModel> Create(string actionName, string controllerName)
Action name
controllerNamestringController Name
Returns:OrgChartAjaxDataSourceBuilder<TModel>
Returns the current OrgChartAjaxDataSourceBuilder<TModel> instance.
Configures the URL for Destroy operation.
public OrgChartAjaxDataSourceBuilder<TModel> Destroy(Action<CrudOperationBuilder> configurator)
The lambda which configures the Destroy Action
Returns:OrgChartAjaxDataSourceBuilder<TModel>
Returns the current OrgChartAjaxDataSourceBuilder<TModel> instance.
Sets controller, action and routeValues for Destroy operation.
public OrgChartAjaxDataSourceBuilder<TModel> Destroy(string actionName, string controllerName, object routeValues)
Action name
controllerNamestringController Name
routeValuesobjectRoute values
Returns:OrgChartAjaxDataSourceBuilder<TModel>
Returns the current OrgChartAjaxDataSourceBuilder<TModel> instance.
Sets controller and action for Destroy operation.
public OrgChartAjaxDataSourceBuilder<TModel> Destroy(string actionName, string controllerName)
Action name
controllerNamestringController Name
Returns:OrgChartAjaxDataSourceBuilder<TModel>
Returns the current OrgChartAjaxDataSourceBuilder<TModel> instance.
Configures Model properties
public OrgChartAjaxDataSourceBuilder<TModel> Model(Action<DataSourceOrgChartModelDescriptorFactory<TModel>> configurator)
The lambda which configures the Model instance
Returns:OrgChartAjaxDataSourceBuilder<TModel>
Returns the current OrgChartAjaxDataSourceBuilder<TModel> instance.
Configures the URL for Update operation.
public OrgChartAjaxDataSourceBuilder<TModel> Update(Action<CrudOperationBuilder> configurator)
The lambda which configures the Update Action
Returns:OrgChartAjaxDataSourceBuilder<TModel>
Returns the current OrgChartAjaxDataSourceBuilder<TModel> instance.
Sets controller, action and routeValues for Update operation.
public OrgChartAjaxDataSourceBuilder<TModel> Update(string actionName, string controllerName, object routeValues)
Action name
controllerNamestringController Name
routeValuesobjectRoute values
Returns:OrgChartAjaxDataSourceBuilder<TModel>
Returns the current OrgChartAjaxDataSourceBuilder<TModel> instance.
Sets controller and action for Update operation.
public OrgChartAjaxDataSourceBuilder<TModel> Update(string actionName, string controllerName)
Action name
controllerNamestringController Name
Returns:OrgChartAjaxDataSourceBuilder<TModel>
Returns the current OrgChartAjaxDataSourceBuilder<TModel> instance.