New to Telerik UI for ASP.NET Core? Download free 30-day trial

TaskBoardResourceBuilder

Methods

BindTo(System.Collections.IEnumerable)

Binds the TaskBoard resource to a list of objects

Parameters

dataSource - System.Collections.IEnumerable

The dataSource

Example


            @(Html.Kendo().TaskBoard()
                .Name("TaskBoard")
                .Resources(resource =>
                {
                    resource.Add()
                        .Field("Category")
                        .BindTo(new[] { 
                            new { Text = "Alex", Value = 1, color = "red" } ,
                            new { Text = "Bob", Value = 1, color = "green" } ,
                            new { Text = "Charlie", Value = 1, color = "blue" } 
                        });
                })
            )

DataSource(System.Action)

Configures the DataSource of the resource.

Parameters

configurator - System.Action<ReadOnlyDataSourceBuilder>

Example


            @(Html.Kendo().TaskBoard()
                .Name("TaskBoard")
                .Resources(resource =>
                {
                    resource.Add(m => m.Category)
                        .DataSource(dataSource =>
                            dataSource
                                .Ajax()
                                .Read(read => read.Action("Products_Read", "Home"))
                        )
                })
            )

DataColorField(System.String)

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

Parameters

value - System.String

The value for DataColorField

DataTextField(System.String)

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

Parameters

value - System.String

The value for DataTextField

DataValueField(System.String)

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.

Parameters

value - System.String

The value for DataValueField

Field(System.String)

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

Parameters

value - System.String

The value for Field

Multiple(System.Boolean)

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.

Parameters

value - System.Boolean

The value for Multiple

Multiple()

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.

Name(System.String)

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

Parameters

value - System.String

The value for Name

Title(System.String)

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

Parameters

value - System.String

The value for Title

ValuePrimitive(System.Boolean)

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).

Parameters

value - System.Boolean

The value for ValuePrimitive

In this article
Not finding the help you need?