Defines the fluent API for configuring GanttResourcesSettings
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class GanttResourcesSettingsBuilder
Inheritance: objectGanttResourcesSettingsBuilder
Inherited Members
Constructors
GanttResourcesSettingsBuilder method.
public GanttResourcesSettingsBuilder(GanttResourcesSettings container, ViewContext viewContext, IUrlGenerator urlGenerator)
Properties
Gets the settings being configured.
protected GanttResourcesSettings Container { get; }
Methods
Binds the gantt resources to a list of objects
public GanttResourcesSettingsBuilder BindTo(IEnumerable dataSource)
The dataSource
Returns:A GanttResourcesSettingsBuilder instance that can be used to configure the ResourcesSettings.
The field of the resource data item which contains the resource color.
public GanttResourcesSettingsBuilder DataColorField(string value)
The value for DataColorField
Returns:A GanttResourcesSettingsBuilder instance that can be used to configure the ResourcesSettings.
The field of the resource data item containing the format of the resource value, which could be assigned to a gantt task. The data item format value could be any valid kendo format.
public GanttResourcesSettingsBuilder DataFormatField(string value)
The value for DataFormatField
Returns:A GanttResourcesSettingsBuilder instance that can be used to configure the ResourcesSettings.
The data source which contains resource 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 GanttResourcesSettingsBuilder DataSource(Action<ReadOnlyAjaxDataSourceBuilder<object>> configurator)
The value that configures the datasource.
Returns:A GanttResourcesSettingsBuilder instance that can be used to configure the ResourcesSettings.
The field of the resource data item which represents the resource text.
public GanttResourcesSettingsBuilder DataTextField(string value)
The value for DataTextField
Returns:A GanttResourcesSettingsBuilder instance that can be used to configure the ResourcesSettings.
The field of the gantt task which contains the assigned resource objects.
public GanttResourcesSettingsBuilder Field(string value)
The value for Field
Returns:A GanttResourcesSettingsBuilder instance that can be used to configure the ResourcesSettings.