Defines the fluent interface for configuring the SchedulerResource<T>.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
T
Syntax:
public class SchedulerResourceBuilder<T> where T : class, ISchedulerEvent
Inheritance: objectSchedulerResourceBuilder<T>
Inherited Members
Constructors
Initializes a new instance of the SchedulerResourceBuilder<T> class.
public SchedulerResourceBuilder(SchedulerResource<T> resource, ViewContext viewContext, IUrlGenerator urlGenerator)
The resource
viewContextViewContextThe viewContext
urlGeneratorIUrlGeneratorThe resource
Methods
Binds the scheduler resource to a list of objects
public SchedulerResourceBuilder<T> BindTo(IEnumerable dataSource)
The dataSource
Returns:Returns the current SchedulerResourceBuilder<T> instance.
The field of the resource data item which contains the resource color.
public SchedulerResourceBuilder<T> DataColorField(string field)
The field
Returns:Returns the current SchedulerResourceBuilder<T> instance.
The field of the resource data item which contains the parent resource value..
public SchedulerResourceBuilder<T> DataParentValueField(string field)
The field
Returns:Returns the current SchedulerResourceBuilder<T> instance.
Configures the DataSource options.
public SchedulerResourceBuilder<T> DataSource(Action<ReadOnlyDataSourceBuilder> configurator)
The DataSource configurator action.
Returns:Returns the current SchedulerResourceBuilder<T> instance.
The field of the resource data item which represents the resource text.
public SchedulerResourceBuilder<T> DataTextField(string field)
The field
Returns:Returns the current SchedulerResourceBuilder<T> instance.
The field of the resource data item which represents the resource value. The resource value is used to link a scheduler event with a resource.
public SchedulerResourceBuilder<T> DataValueField(string field)
The field
Returns:Returns the current SchedulerResourceBuilder<T> instance.
If set to true the scheduler event can be assigned multiple instances of the resource. The scheduler event field specified via the field option will contain an array of resources. By default only one resource instance can be assigned to an event.
public SchedulerResourceBuilder<T> Multiple(bool isMultiple)
The isMultiple
Returns:Returns the current SchedulerResourceBuilder<T> instance.
The name of the resource.
public SchedulerResourceBuilder<T> Name(string value)
Returns the current SchedulerResourceBuilder<T> instance.
The user friendly title of the resource displayed in the scheduler edit form. If not set the value of the field option is used.
public SchedulerResourceBuilder<T> Title(string title)
The title
Returns:Returns the current SchedulerResourceBuilder<T> instance.
Set to false if the scheduler event field specified via the field option contains a resource data item. By default the scheduler expects that field to contain a primitive value (string, number) which corresponds to the "value" of the resource (specified via dataValueField).
public SchedulerResourceBuilder<T> ValuePrimitive(bool valuePrimitive)
The valuePrimitive
Returns:Returns the current SchedulerResourceBuilder<T> instance.