Defines the fluent API for configuring the GanttResourcesSettings settings.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class GanttResourcesSettingsBuilder
Inheritance: objectGanttResourcesSettingsBuilder
Inherited Members
Constructors
public GanttResourcesSettingsBuilder(GanttResourcesSettings settings, ViewContext viewContext, IUrlGenerator urlGenerator)
Methods
Binds the gantt resources to a list of objects
public GanttResourcesSettingsBuilder BindTo(IEnumerable dataSource)
The dataSource
Returns:The field of the resource data item which contains the resource color.
public GanttResourcesSettingsBuilder DataColorField(string value)
The value that configures the datacolorfield.
Returns: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 that configures the dataformatfield.
Returns: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:The field of the resource data item which represents the resource text.
public GanttResourcesSettingsBuilder DataTextField(string value)
The value that configures the datatextfield.
Returns:The field of the gantt task which contains the assigned resource objects.
public GanttResourcesSettingsBuilder Field(string value)
The value that configures the field.
Returns: