New to Telerik UI for ASP.NET MVC? Start a free 30-day trial

Defines the fluent API for configuring the TaskBoardResource settings.

Definition

Namespace:Kendo.Mvc.UI

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class TaskBoardResource : JsonObject

Inheritance: objectJsonObjectTaskBoardResource

Inherited Members JsonObject.ToJson()object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

C#
public TaskBoardResource(string field, ViewContext viewContext, IUrlGenerator urlGenerator)
Parameters:fieldstringviewContextViewContexturlGeneratorIUrlGenerator

Initialization for the TaskBoardResource

C#
public TaskBoardResource(ViewContext viewContext, IUrlGenerator urlGenerator)
Parameters:viewContextViewContexturlGeneratorIUrlGenerator

Properties

The field of the resource data item which contains the resource color.

C#
public string DataColorField { get; set; }
C#
public DataSource DataSource { get; }
C#
public string DataSourceId { get; set; }

The field of the resource data item which represents the resource text.

C#
public string DataTextField { get; set; }

The field of the resource data item which represents the resource value. The resource value is used to link a TaskBoard event with a resource.

C#
public string DataValueField { get; set; }

The field of the TaskBoard event which contains the resource id.

C#
public string Field { get; set; }

If set to true the TaskBoard event can be assigned multiple instances of the resource. The TaskBoard 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.

C#
public bool? Multiple { get; set; }

The name of the resource used to distinguish resource. If not set the value of the field option is used.

C#
public string Name { get; set; }

The user friendly title of the resource displayed in the TaskBoard edit form. If not set the value of the field option is used.

C#
public string Title { get; set; }
C#
public IUrlGenerator UrlGenerator { get; }

Set to false if the TaskBoard event field specified via the field option contains a resource data item. By default the TaskBoard expects that field to contain a primitive value (string, number) which corresponds to the "value" of the resource (specified via dataValueField).

C#
public bool? ValuePrimitive { get; set; }

ViewContext

ViewContext

C#
public ViewContext ViewContext { get; }

Methods

Serialize current instance to Dictionary

C#
protected override void Serialize(IDictionary<string, object> json)
Parameters:jsonIDictionary<string, object>

Overrides: JsonObject.Serialize(IDictionary<string, object>)