Defines the fluent API for configuring GanttAssignmentsSettings
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
TAssingmentModel
Syntax:
public class GanttAssignmentsSettingsBuilder<TAssingmentModel> where TAssingmentModel : class
Inheritance: objectGanttAssignmentsSettingsBuilder<TAssingmentModel>
Inherited Members
Constructors
GanttAssignmentsSettingsBuilder method.
public GanttAssignmentsSettingsBuilder(GanttAssignmentsSettings container, ViewContext viewContext, IUrlGenerator urlGenerator)
Properties
Gets the settings being configured.
protected GanttAssignmentsSettings Container { get; }
Methods
Binds the gantt assignments to a list of objects
public GanttAssignmentsSettingsBuilder<TAssingmentModel> BindTo(IEnumerable dataSource)
The dataSource
Returns:GanttAssignmentsSettingsBuilder<TAssingmentModel>
A GanttAssignmentsSettingsBuilder<TAssingmentModel> instance that can be used to configure the Gantt assignments settings.
The field of the assignment data item which represents the resource id.
public GanttAssignmentsSettingsBuilder<TAssingmentModel> DataResourceIdField(string value)
The value for DataResourceIdField
Returns:GanttAssignmentsSettingsBuilder<TAssingmentModel>
A GanttAssignmentsSettingsBuilder<TAssingmentModel> instance that can be used to configure the Gantt assignments settings.
The data source which contains assignment data items. Can be a JavaScript object which represents a valid data source configuration, a JavaScript array or an existing kendo.data.DataSource instance.If the dataSource option is set to a JavaScript object or array the component will initialize a new kendo.data.DataSource instance using that value as data source configuration.If the dataSource option is an existing kendo.data.DataSource instance the component will use that instance and will not initialize a new one.
public GanttAssignmentsSettingsBuilder<TAssingmentModel> DataSource(Action<GanttAssignmentsDataSourceBuilder<TAssingmentModel>> configurator)
The action that configures the datasource.
Returns:GanttAssignmentsSettingsBuilder<TAssingmentModel>
A GanttAssignmentsSettingsBuilder<TAssingmentModel> instance that can be used to configure the Gantt assignments settings.
The field of the assignment data item which represents the task id.
public GanttAssignmentsSettingsBuilder<TAssingmentModel> DataTaskIdField(string value)
The value for DataTaskIdField
Returns:GanttAssignmentsSettingsBuilder<TAssingmentModel>
A GanttAssignmentsSettingsBuilder<TAssingmentModel> instance that can be used to configure the Gantt assignments settings.
The field of the assignment data item which represents the amount of the assigned resource.
public GanttAssignmentsSettingsBuilder<TAssingmentModel> DataValueField(string value)
The value for DataValueField
Returns:GanttAssignmentsSettingsBuilder<TAssingmentModel>
A GanttAssignmentsSettingsBuilder<TAssingmentModel> instance that can be used to configure the Gantt assignments settings.