Represents the OrgChartAjaxDataSourceBuilder
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
public OrgChartAjaxDataSourceBuilder(DataSource dataSource, ViewContext viewContext, IUrlGenerator urlGenerator)
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>
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>
Configures the URL for Create operation.
public OrgChartAjaxDataSourceBuilder<TModel> Create(Action<CrudOperationBuilder> configurator)
The lambda which configures the Create Action
Returns:OrgChartAjaxDataSourceBuilder<TModel>
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>
Sets controller and action for Create operation.
public OrgChartAjaxDataSourceBuilder<TModel> Create(string actionName, string controllerName)
Action name
controllerNamestringController Name
Returns:OrgChartAjaxDataSourceBuilder<TModel>
Configures the URL for Destroy operation.
public OrgChartAjaxDataSourceBuilder<TModel> Destroy(Action<CrudOperationBuilder> configurator)
The lambda which configures the Destroy Action
Returns:OrgChartAjaxDataSourceBuilder<TModel>
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>
Sets controller and action for Destroy operation.
public OrgChartAjaxDataSourceBuilder<TModel> Destroy(string actionName, string controllerName)
Action name
controllerNamestringController Name
Returns:OrgChartAjaxDataSourceBuilder<TModel>
Configures Model properties
public OrgChartAjaxDataSourceBuilder<TModel> Model(Action<DataSourceOrgChartModelDescriptorFactory<TModel>> configurator)
The lambda which configures the Model instance
Returns:OrgChartAjaxDataSourceBuilder<TModel>
Configures the URL for Update operation.
public OrgChartAjaxDataSourceBuilder<TModel> Update(Action<CrudOperationBuilder> configurator)
The lambda which configures the Update Action
Returns:OrgChartAjaxDataSourceBuilder<TModel>
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>
Sets controller and action for Update operation.
public OrgChartAjaxDataSourceBuilder<TModel> Update(string actionName, string controllerName)
Action name
controllerNamestringController Name
Returns:OrgChartAjaxDataSourceBuilder<TModel>