# TaskBoardResourceBuilder

## Methods

### BindTo(System.Collections.IEnumerable)

Binds the TaskBoard resource to a list of objects

#### Parameters

##### dataSource - `System.Collections.IEnumerable`

The dataSource

#### RETURNS

The current instance of the [TaskBoardResourceBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/taskboardresourcebuilder).

#### 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](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/readonlydatasourcebuilder)>

The dataSource

#### RETURNS

The current instance of the [TaskBoardResourceBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/taskboardresourcebuilder).

#### 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

#### RETURNS

Returns the current [TaskBoardResourceBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/taskboardresourcebuilder) instance.

### DataTextField(System.String)

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

#### Parameters

##### value - `System.String`

The value for DataTextField

#### RETURNS

Returns the current [TaskBoardResourceBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/taskboardresourcebuilder) instance.

### 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

#### RETURNS

Returns the current [TaskBoardResourceBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/taskboardresourcebuilder) instance.

### Field(System.String)

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

#### Parameters

##### value - `System.String`

The value for Field

#### RETURNS

Returns the current [TaskBoardResourceBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/taskboardresourcebuilder) instance.

### 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

#### RETURNS

Returns the current [TaskBoardResourceBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/taskboardresourcebuilder) instance.

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

#### RETURNS

Returns the current [TaskBoardResourceBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/taskboardresourcebuilder) instance.

### 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

#### RETURNS

Returns the current [TaskBoardResourceBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/taskboardresourcebuilder) instance.

### 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

#### RETURNS

Returns the current [TaskBoardResourceBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/taskboardresourcebuilder) instance.

### 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

#### RETURNS

Returns the current [TaskBoardResourceBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/taskboardresourcebuilder) instance.
