New to Telerik UI for ASP.NET MVC? Start a free 30-day trial

Represents the OrgChartAjaxDataSourceBuilder

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

TModel

Syntax:

C#
public class OrgChartAjaxDataSourceBuilder<TModel> : AjaxDataSourceBuilderBase<TModel, OrgChartAjaxDataSourceBuilder<TModel>> where TModel : class

Inheritance: objectAjaxDataSourceBuilderBase<TModel, OrgChartAjaxDataSourceBuilder<TModel>>OrgChartAjaxDataSourceBuilder<TModel>

Inherited Members AjaxDataSourceBuilderBase<TModel, OrgChartAjaxDataSourceBuilder<TModel>>.dataSourceAjaxDataSourceBuilderBase<TModel, OrgChartAjaxDataSourceBuilder<TModel>>.urlGeneratorAjaxDataSourceBuilderBase<TModel, OrgChartAjaxDataSourceBuilder<TModel>>.viewContextAjaxDataSourceBuilderBase<TModel, OrgChartAjaxDataSourceBuilder<TModel>>.Events(Action<DataSourceEventBuilder>)AjaxDataSourceBuilderBase<TModel, OrgChartAjaxDataSourceBuilder<TModel>>.Read(Action<CrudOperationBuilder>)AjaxDataSourceBuilderBase<TModel, OrgChartAjaxDataSourceBuilder<TModel>>.Read(string, string, object)AjaxDataSourceBuilderBase<TModel, OrgChartAjaxDataSourceBuilder<TModel>>.Read(string, string)AjaxDataSourceBuilderBase<TModel, OrgChartAjaxDataSourceBuilder<TModel>>.Total(int)AjaxDataSourceBuilderBase<TModel, OrgChartAjaxDataSourceBuilder<TModel>>.GroupPaging(bool)AjaxDataSourceBuilderBase<TModel, OrgChartAjaxDataSourceBuilder<TModel>>.OfflineStorage(string)AjaxDataSourceBuilderBase<TModel, OrgChartAjaxDataSourceBuilder<TModel>>.OfflineStorage(string, string)AjaxDataSourceBuilderBase<TModel, OrgChartAjaxDataSourceBuilder<TModel>>.PageSize(int)AjaxDataSourceBuilderBase<TModel, OrgChartAjaxDataSourceBuilder<TModel>>.ServerOperation(bool)AjaxDataSourceBuilderBase<TModel, OrgChartAjaxDataSourceBuilder<TModel>>.Sort(Action<DataSourceSortDescriptorFactory<TModel>>)AjaxDataSourceBuilderBase<TModel, OrgChartAjaxDataSourceBuilder<TModel>>.Group(Action<DataSourceGroupDescriptorFactory<TModel>>)AjaxDataSourceBuilderBase<TModel, OrgChartAjaxDataSourceBuilder<TModel>>.AccentFoldingFiltering(string)AjaxDataSourceBuilderBase<TModel, OrgChartAjaxDataSourceBuilder<TModel>>.Aggregates(Action<DataSourceAggregateDescriptorFactory<TModel>>)AjaxDataSourceBuilderBase<TModel, OrgChartAjaxDataSourceBuilder<TModel>>.Filter(Action<DataSourceFilterDescriptorFactory<TModel>>)AjaxDataSourceBuilderBase<TModel, OrgChartAjaxDataSourceBuilder<TModel>>.Model(Action<DataSourceModelDescriptorFactory<TModel>>)AjaxDataSourceBuilderBase<TModel, OrgChartAjaxDataSourceBuilder<TModel>>.CaseSensitiveFiltering()AjaxDataSourceBuilderBase<TModel, OrgChartAjaxDataSourceBuilder<TModel>>.SetOperationUrl(CrudOperation, string, string, object)object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

C#
public OrgChartAjaxDataSourceBuilder(DataSource dataSource, ViewContext viewContext, IUrlGenerator urlGenerator)
Parameters:dataSourceDataSourceviewContextViewContexturlGeneratorIUrlGenerator

Methods

Determines if data source would automatically sync any changes to its data items. By default changes are not automatically sync-ed.

C#
public virtual OrgChartAjaxDataSourceBuilder<TModel> AutoSync(bool enabled)
Parameters:enabledbool

If true changes will be automatically synced, otherwise false.

Returns:

OrgChartAjaxDataSourceBuilder<TModel>

Example:
C#
.DataSource(dataSource =&gt; dataSource
.AutoSync(true)
)

Determines if modifications will be sent to the server in batches or as individually requests.

C#
public virtual OrgChartAjaxDataSourceBuilder<TModel> Batch(bool enabled)
Parameters:enabledbool

If true changes will be batched, otherwise false.

Returns:

OrgChartAjaxDataSourceBuilder<TModel>

Example:
C#
.DataSource(dataSource =&gt; dataSource
.Batch(true)
)

Configures the URL for Create operation.

C#
public OrgChartAjaxDataSourceBuilder<TModel> Create(Action<CrudOperationBuilder> configurator)
Parameters:configuratorAction<CrudOperationBuilder>

The lambda which configures the Create Action

Returns:

OrgChartAjaxDataSourceBuilder<TModel>

Example:
C#
.DataSource(dataSource =&gt; dataSource
.Create(u =&gt; u.Action("Create", "Home"))
)

Sets controller, action and routeValues for Create operation.

C#
public OrgChartAjaxDataSourceBuilder<TModel> Create(string actionName, string controllerName, object routeValues)
Parameters:actionNamestring

Action name

controllerNamestring

Controller Name

routeValuesobject

Route values

Returns:

OrgChartAjaxDataSourceBuilder<TModel>

Example:
C#
.DataSource(dataSource =&gt; dataSource
.Create("Create", "Home", new { id = ViewData["id"] })
)

Sets controller and action for Create operation.

C#
public OrgChartAjaxDataSourceBuilder<TModel> Create(string actionName, string controllerName)
Parameters:actionNamestring

Action name

controllerNamestring

Controller Name

Returns:

OrgChartAjaxDataSourceBuilder<TModel>

Example:
C#
.DataSource(dataSource =&gt; dataSource
.Create("Create", "Home")
)

Configures the URL for Destroy operation.

C#
public OrgChartAjaxDataSourceBuilder<TModel> Destroy(Action<CrudOperationBuilder> configurator)
Parameters:configuratorAction<CrudOperationBuilder>

The lambda which configures the Destroy Action

Returns:

OrgChartAjaxDataSourceBuilder<TModel>

Example:
C#
.DataSource(dataSource =&gt; dataSource
.Destroy(u =&gt; u.Action("Destroy", "Home"))
)

Sets controller, action and routeValues for Destroy operation.

C#
public OrgChartAjaxDataSourceBuilder<TModel> Destroy(string actionName, string controllerName, object routeValues)
Parameters:actionNamestring

Action name

controllerNamestring

Controller Name

routeValuesobject

Route values

Returns:

OrgChartAjaxDataSourceBuilder<TModel>

Example:
C#
.DataSource(dataSource =&gt; dataSource
.Destroy("Destroy", "Home", new { id = ViewData["id"] })
)

Sets controller and action for Destroy operation.

C#
public OrgChartAjaxDataSourceBuilder<TModel> Destroy(string actionName, string controllerName)
Parameters:actionNamestring

Action name

controllerNamestring

Controller Name

Returns:

OrgChartAjaxDataSourceBuilder<TModel>

Example:
C#
.DataSource(dataSource =&gt; dataSource
.Destroy("Destroy", "Home")
)

Configures Model properties

C#
public OrgChartAjaxDataSourceBuilder<TModel> Model(Action<DataSourceOrgChartModelDescriptorFactory<TModel>> configurator)
Parameters:configuratorAction<DataSourceOrgChartModelDescriptorFactory<TModel>>

The lambda which configures the Model instance

Returns:

OrgChartAjaxDataSourceBuilder<TModel>

Example:
C#
.DataSource(dataSource =&gt; dataSource
.Model(m =&gt; m.Id(o =&gt; o.EmployeeID))
)

Configures the URL for Update operation.

C#
public OrgChartAjaxDataSourceBuilder<TModel> Update(Action<CrudOperationBuilder> configurator)
Parameters:configuratorAction<CrudOperationBuilder>

The lambda which configures the Update Action

Returns:

OrgChartAjaxDataSourceBuilder<TModel>

Example:
C#
.DataSource(dataSource =&gt; dataSource
.Update(u =&gt; u.Action("Update", "Home"))
)

Sets controller, action and routeValues for Update operation.

C#
public OrgChartAjaxDataSourceBuilder<TModel> Update(string actionName, string controllerName, object routeValues)
Parameters:actionNamestring

Action name

controllerNamestring

Controller Name

routeValuesobject

Route values

Returns:

OrgChartAjaxDataSourceBuilder<TModel>

Example:
C#
.DataSource(dataSource =&gt; dataSource
.Update("Update", "Home", new { id = ViewData["id"] })
)

Sets controller and action for Update operation.

C#
public OrgChartAjaxDataSourceBuilder<TModel> Update(string actionName, string controllerName)
Parameters:actionNamestring

Action name

controllerNamestring

Controller Name

Returns:

OrgChartAjaxDataSourceBuilder<TModel>

Example:
C#
.DataSource(dataSource =&gt; dataSource
.Update("Update", "Home")
)