Defines the fluent API for configuring the GanttAssignmentsSettings settings.
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
public GanttAssignmentsSettingsBuilder(GanttAssignmentsSettings settings, ViewContext viewContext, IUrlGenerator urlGenerator)
Methods
Binds the gantt assignments to a list of objects
public GanttAssignmentsSettingsBuilder<TAssingmentModel> BindTo(IEnumerable dataSource)
The dataSource
Returns:GanttAssignmentsSettingsBuilder<TAssingmentModel>
The field of the assignment data item which represents the resource id.
public GanttAssignmentsSettingsBuilder<TAssingmentModel> DataResourceIdField(string value)
The value that configures the dataresourceidfield.
Returns:GanttAssignmentsSettingsBuilder<TAssingmentModel>
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 value that configures the datasource.
Returns:GanttAssignmentsSettingsBuilder<TAssingmentModel>
The field of the assignment data item which represents the task id.
public GanttAssignmentsSettingsBuilder<TAssingmentModel> DataTaskIdField(string value)
The value that configures the datataskidfield.
Returns:GanttAssignmentsSettingsBuilder<TAssingmentModel>
The field of the assignment data item which represents the amount of the assigned resource.
public GanttAssignmentsSettingsBuilder<TAssingmentModel> DataValueField(string value)
The value that configures the datavaluefield.
Returns:GanttAssignmentsSettingsBuilder<TAssingmentModel>