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

Defines the fluent API for configuring the Kendo UI TaskBoard

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

TCard

TColumn

Syntax:

C#
public class TaskBoardBuilder<TCard, TColumn> : WidgetBuilderBase<TaskBoard<TCard, TColumn>, TaskBoardBuilder<TCard, TColumn>>, IHtmlContent where TCard : class where TColumn : class

Inheritance: objectHelperResultWidgetBuilderBase<TaskBoard<TCard, TColumn>, TaskBoardBuilder<TCard, TColumn>>TaskBoardBuilder<TCard, TColumn>

Implements: IHtmlContent

Inherited Members WidgetBuilderBase<TaskBoard<TCard, TColumn>, TaskBoardBuilder<TCard, TColumn>>.ToComponent()WidgetBuilderBase<TaskBoard<TCard, TColumn>, TaskBoardBuilder<TCard, TColumn>>.Expression(string)WidgetBuilderBase<TaskBoard<TCard, TColumn>, TaskBoardBuilder<TCard, TColumn>>.Explorer(ModelExplorer)WidgetBuilderBase<TaskBoard<TCard, TColumn>, TaskBoardBuilder<TCard, TColumn>>.Name(string)WidgetBuilderBase<TaskBoard<TCard, TColumn>, TaskBoardBuilder<TCard, TColumn>>.Deferred(bool)WidgetBuilderBase<TaskBoard<TCard, TColumn>, TaskBoardBuilder<TCard, TColumn>>.HtmlAttributes(object)WidgetBuilderBase<TaskBoard<TCard, TColumn>, TaskBoardBuilder<TCard, TColumn>>.HtmlAttributes(IDictionary<string, object>)WidgetBuilderBase<TaskBoard<TCard, TColumn>, TaskBoardBuilder<TCard, TColumn>>.ScriptAttributes(object, bool)WidgetBuilderBase<TaskBoard<TCard, TColumn>, TaskBoardBuilder<TCard, TColumn>>.ScriptAttributes(IDictionary<string, object>, bool)WidgetBuilderBase<TaskBoard<TCard, TColumn>, TaskBoardBuilder<TCard, TColumn>>.Render()WidgetBuilderBase<TaskBoard<TCard, TColumn>, TaskBoardBuilder<TCard, TColumn>>.ToHtmlString()WidgetBuilderBase<TaskBoard<TCard, TColumn>, TaskBoardBuilder<TCard, TColumn>>.WriteTo(TextWriter, HtmlEncoder)WidgetBuilderBase<TaskBoard<TCard, TColumn>, TaskBoardBuilder<TCard, TColumn>>.ToClientTemplate()WidgetBuilderBase<TaskBoard<TCard, TColumn>, TaskBoardBuilder<TCard, TColumn>>.AsModule(bool)WidgetBuilderBase<TaskBoard<TCard, TColumn>, TaskBoardBuilder<TCard, TColumn>>.ComponentWidgetBuilderBase<TaskBoard<TCard, TColumn>, TaskBoardBuilder<TCard, TColumn>>.ContainerHelperResult.WriteTo(TextWriter, HtmlEncoder)HelperResult.WriteActionobject.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

Initializes a new instance of the TaskBoardBuilder<TCard, TColumn> class.

C#
public TaskBoardBuilder(TaskBoard<TCard, TColumn> component)
Parameters:componentTaskBoard<TCard, TColumn>

Methods

Controls whether to bind the TaskBoard to the data source on initialization.

C#
public TaskBoardBuilder<TCard, TColumn> AutoBind(bool value)
Parameters:valuebool

The value for AutoBind

Returns:

TaskBoardBuilder<TCard, TColumn>

Returns the current TaskBoardBuilder<TCard, TColumn> instance.

Binds the TaskBoard Cards to a list of objects

C#
public TaskBoardBuilder<TCard, TColumn> BindTo(IEnumerable dataSource)
Parameters:dataSourceIEnumerable

The data source.

Returns:

TaskBoardBuilder<TCard, TColumn>

The current instance of the TaskBoardBuilder<TCard, TColumn>.

Example:
C#
@model IEnumerable&lt;Card&gt;
@(Html.Kendo().TaskBoard()
.Name("taskBoard")
.BindTo(Model)
)

Binds the TaskBoard Cards to a list of objects

C#
public TaskBoardBuilder<TCard, TColumn> BindTo(IEnumerable<TCard> dataSource)
Parameters:dataSourceIEnumerable<TCard>

The data source.

Returns:

TaskBoardBuilder<TCard, TColumn>

The current instance of the TaskBoardBuilder<TCard, TColumn>.

Example:
C#
@model IEnumerable&lt;Card&gt;
@(Html.Kendo().TaskBoard&lt;Card&gt;()
.Name("taskBoard")
.BindTo(Model)
)

Defines the list of buttons rendered in the card.

C#
public TaskBoardBuilder<TCard, TColumn> CardMenu(Action<TaskBoardCardMenuFactory<TCard, TColumn>> configurator)
Parameters:configuratorAction<TaskBoardCardMenuFactory<TCard, TColumn>>

The TaskBoardCardMenuFactory<TCard, TColumn> for the cardmenu setting.

Returns:

TaskBoardBuilder<TCard, TColumn>

Returns the current instance of TaskBoardBuilder<TCard, TColumn> .

Sets the data source configuration of the TaskBoard's Columns.

C#
public TaskBoardBuilder<TCard, TColumn> Columns(Action<DataSourceBuilder<TColumn>> configurator)
Parameters:configuratorAction<DataSourceBuilder<TColumn>>

The lambda which configures the data source

Returns:

TaskBoardBuilder<TCard, TColumn>

The current instance of the TaskBoardBuilder<TCard, TColumn>.

Example:
C#
@(Html.Kendo().TaskBoard&lt;Product&gt;()
.Name("TaskBoard")
.Columns(dataSource =&gt;
// configure the data source
dataSource
.Ajax()
.Read(read =&gt; read.Action("Products_Read", "Home"))
)
)

Uses predifined Model to configure the columns.

C#
public TaskBoardBuilder<TCard, TColumn> Columns(Action<TaskBoardColumnsBuilder> configurator)
Parameters:configuratorAction<TaskBoardColumnsBuilder>

The lambda which configures the columns

Returns:

TaskBoardBuilder<TCard, TColumn>

The current instance of the TaskBoardBuilder<TCard, TColumn>.

Example:
C#
@(Html.Kendo().TaskBoard&lt;Product&gt;()
.Name("TaskBoard")
.Columns(columns =&gt;
{
columns.Add().Text(quot;Text").Status(quot;Sttus")
})
)

Binds the TaskBoard Columns to a list of objects

C#
public TaskBoardBuilder<TCard, TColumn> Columns(IEnumerable dataSource)
Parameters:dataSourceIEnumerable

The data source.

Returns:

TaskBoardBuilder<TCard, TColumn>

The current instance of the TaskBoardBuilder<TCard, TColumn>.

Example:
C#
@(Html.Kendo().TaskBoard()
.Name("taskBoard")
.Columns(new List&lt;object&gt;
{
new { Status = "Status", Text = "Text"}
})
)

Binds the TaskBoard Columns to a list of objects

C#
public TaskBoardBuilder<TCard, TColumn> Columns(IEnumerable<TColumn> dataSource)
Parameters:dataSourceIEnumerable<TColumn>

The data source.

Returns:

TaskBoardBuilder<TCard, TColumn>

The current instance of the TaskBoardBuilder<TCard, TColumn>.

Example:
C#
@(Html.Kendo().TaskBoard&lt;Card, Column&gt;()
.Name("taskBoard")
.Columns(new List&lt;Column&gt;
{
new Column { Status = "Status", Text = "Text"}
})
)

Defines the settings for the columns.

C#
public TaskBoardBuilder<TCard, TColumn> ColumnSettings(Action<TaskBoardColumnSettingsSettingsBuilder<TCard, TColumn>> configurator)
Parameters:configuratorAction<TaskBoardColumnSettingsSettingsBuilder<TCard, TColumn>>

The TaskBoardColumnSettingsSettingsBuilder<TCard, TColumn> for the columnsettings setting.

Returns:

TaskBoardBuilder<TCard, TColumn>

Returns the current instance of TaskBoardBuilder<TCard, TColumn> .

Sets the ID of the DataSource widget used by the TaskBoard Columns.

C#
public TaskBoardBuilder<TCard, TColumn> ColumnsId(string dataSourceId)
Parameters:dataSourceIdstring

The name of the DataSource

Returns:

TaskBoardBuilder<TCard, TColumn>

The current instance of the TaskBoardBuilder<TCard, TColumn>.

Example:
C#
@(Html.Kendo().TaskBoard&lt;Product&gt;()
.Name("TaskBoard")
.Columns("dataSource1")
)
@(Html.Kendo().DataSource&lt;Product&gt;()
.Name("dataSource1")
.Ajax(ds=&gt;ds
.Read(read =&gt; read.Action("Products_Read", "Home"))
.PageSize(20)
)
)

The category field of the card.

C#
public TaskBoardBuilder<TCard, TColumn> DataCategoryField(string value)
Parameters:valuestring

The value for DataCategoryField

Returns:

TaskBoardBuilder<TCard, TColumn>

Returns the current TaskBoardBuilder<TCard, TColumn> instance.

The description field of the card.

C#
public TaskBoardBuilder<TCard, TColumn> DataDescriptionField(string value)
Parameters:valuestring

The value for DataDescriptionField

Returns:

TaskBoardBuilder<TCard, TColumn>

Returns the current TaskBoardBuilder<TCard, TColumn> instance.

The field used to order cards (number based). If not set, cards will be rendered in the order they are fetched. And ordering will not be applied to the DataSource and respectively, not synced with the remote data source.

C#
public TaskBoardBuilder<TCard, TColumn> DataOrderField(string value)
Parameters:valuestring

The value for DataOrderField

Returns:

TaskBoardBuilder<TCard, TColumn>

Returns the current TaskBoardBuilder<TCard, TColumn> instance.

Sets the data source configuration of the TaskBoard.

C#
public TaskBoardBuilder<TCard, TColumn> DataSource(Action<DataSourceBuilder<TCard>> configurator)
Parameters:configuratorAction<DataSourceBuilder<TCard>>

The lambda which configures the data source

Returns:

TaskBoardBuilder<TCard, TColumn>

The current instance of the TaskBoardBuilder<TCard, TColumn>.

Example:
C#
@(Html.Kendo().TaskBoard&lt;Product&gt;()
.Name("TaskBoard")
.DataSource(dataSource =&gt;
// configure the data source
dataSource
.Ajax()
.Read(read =&gt; read.Action("Products_Read", "Home"))
)
)

Sets the ID of the DataSource widget used by the TaskBoard.

C#
public TaskBoardBuilder<TCard, TColumn> DataSource(string dataSourceId)
Parameters:dataSourceIdstring

The name of the DataSource

Returns:

TaskBoardBuilder<TCard, TColumn>

The current instance of the TaskBoardBuilder<TCard, TColumn>.

Example:
C#
@(Html.Kendo().TaskBoard&lt;Product&gt;()
.Name("TaskBoard")
.DataSource("dataSource1")
)
@(Html.Kendo().DataSource&lt;Product&gt;()
.Name("dataSource1")
.Ajax(ds=&gt;ds
.Read(read =&gt; read.Action("Products_Read", "Home"))
.PageSize(20)
)
)

The field of the data item that provides the status of the card. Mapped with the status of the columns.

C#
public TaskBoardBuilder<TCard, TColumn> DataStatusField(string value)
Parameters:valuestring

The value for DataStatusField

Returns:

TaskBoardBuilder<TCard, TColumn>

Returns the current TaskBoardBuilder<TCard, TColumn> instance.

The title field of the card.

C#
public TaskBoardBuilder<TCard, TColumn> DataTitleField(string value)
Parameters:valuestring

The value for DataTitleField

Returns:

TaskBoardBuilder<TCard, TColumn>

Returns the current TaskBoardBuilder<TCard, TColumn> instance.

Toggles the editing in the TaskBoard. Both for columns and cards.

C#
public TaskBoardBuilder<TCard, TColumn> Editable(Action<TaskBoardEditableSettingsBuilder<TCard, TColumn>> configurator)
Parameters:configuratorAction<TaskBoardEditableSettingsBuilder<TCard, TColumn>>

The TaskBoardEditableSettingsBuilder<TCard, TColumn> for the editable setting.

Returns:

TaskBoardBuilder<TCard, TColumn>

Returns the current instance of TaskBoardBuilder<TCard, TColumn> .

Toggles the editing in the TaskBoard. Both for columns and cards.

C#
public TaskBoardBuilder<TCard, TColumn> Editable(bool enabled)
Parameters:enabledbool

Enables or disables the editable option.

Returns:

TaskBoardBuilder<TCard, TColumn>

Returns the current instance of TaskBoardEditableSettingsBuilder<TCard, TColumn> .

Configures the client-side events.

C#
public TaskBoardBuilder<TCard, TColumn> Events(Action<TaskBoardEventBuilder> configurator)
Parameters:configuratorAction<TaskBoardEventBuilder>

The client events action.

Returns:

TaskBoardBuilder<TCard, TColumn>

Returns the current TaskBoardBuilder<TCard, TColumn> instance.

Example:
C#
@(Html.Kendo().TaskBoard()
.Name("TaskBoard")
.Events(events =&gt; events
.ColumnsDataBinding("onColumnsDataBinding")
)
)

Configures the height of the TaskBoard wrapper.

C#
public TaskBoardBuilder<TCard, TColumn> Height(string value)
Parameters:valuestring

The value for Height

Returns:

TaskBoardBuilder<TCard, TColumn>

Returns the current TaskBoardBuilder<TCard, TColumn> instance.

Provides configuration options for the messages present in the TaskBoard widget.

C#
public TaskBoardBuilder<TCard, TColumn> Messages(Action<TaskBoardMessagesSettingsBuilder<TCard, TColumn>> configurator)
Parameters:configuratorAction<TaskBoardMessagesSettingsBuilder<TCard, TColumn>>

The TaskBoardMessagesSettingsBuilder<TCard, TColumn> for the messages setting.

Returns:

TaskBoardBuilder<TCard, TColumn>

Returns the current instance of TaskBoardBuilder<TCard, TColumn> .

Toggles the previewPane in the TaskBoard.

C#
public TaskBoardBuilder<TCard, TColumn> PreviewPane(Action<TaskBoardPreviewPaneSettingsBuilder<TCard, TColumn>> configurator)
Parameters:configuratorAction<TaskBoardPreviewPaneSettingsBuilder<TCard, TColumn>>

The TaskBoardPreviewPaneSettingsBuilder<TCard, TColumn> for the previewpane setting.

Returns:

TaskBoardBuilder<TCard, TColumn>

Returns the current instance of TaskBoardBuilder<TCard, TColumn> .

Toggles the previewPane in the TaskBoard.

C#
public TaskBoardBuilder<TCard, TColumn> PreviewPane(bool enabled)
Parameters:enabledbool

Enables or disables the previewpane option.

Returns:

TaskBoardBuilder<TCard, TColumn>

Returns the current instance of TaskBoardPreviewPaneSettingsBuilder<TCard, TColumn> .

Toggles the reordering of cards in the TaskBoard.

C#
public TaskBoardBuilder<TCard, TColumn> Reorderable(bool value)
Parameters:valuebool

The value for Reorderable

Returns:

TaskBoardBuilder<TCard, TColumn>

Returns the current TaskBoardBuilder<TCard, TColumn> instance.

The configuration of the TaskBoard resource(s). A TaskBoard resource is optional metadata that can be associated with a TaskBoard event.

C#
public TaskBoardBuilder<TCard, TColumn> Resources(Action<TaskBoardResourceFactory<TCard, TColumn>> configurator)
Parameters:configuratorAction<TaskBoardResourceFactory<TCard, TColumn>>

The TaskBoardResourceFactory<TCard, TColumn> for the resources setting.

Returns:

TaskBoardBuilder<TCard, TColumn>

Returns the current instance of TaskBoardBuilder<TCard, TColumn> .

Toggles the selection of the TaskBoard.

C#
public TaskBoardBuilder<TCard, TColumn> Selectable(bool value)
Parameters:valuebool

The value for Selectable

Returns:

TaskBoardBuilder<TCard, TColumn>

Returns the current TaskBoardBuilder<TCard, TColumn> instance.

Controls the rendering of the card.

C#
public TaskBoardBuilder<TCard, TColumn> Template(string value)
Parameters:valuestring

The value for Template

Returns:

TaskBoardBuilder<TCard, TColumn>

Returns the current TaskBoardBuilder<TCard, TColumn> instance.

Controls the rendering of the card.

C#
public TaskBoardBuilder<TCard, TColumn> Template<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the template.

Returns:

TaskBoardBuilder<TCard, TColumn>

Returns the current TaskBoardBuilder<TCard, TColumn> instance.

Controls the rendering of the card.

C#
public TaskBoardBuilder<TCard, TColumn> TemplateHandler(string templateHandler)
Parameters:templateHandlerstring

The handler that returs the template for Template

Returns:

TaskBoardBuilder<TCard, TColumn>

Returns the current TaskBoardBuilder<TCard, TColumn> instance.

Controls the rendering of the card.

C#
public TaskBoardBuilder<TCard, TColumn> TemplateId(string templateId)
Parameters:templateIdstring

The ID of the template element for Template

Returns:

TaskBoardBuilder<TCard, TColumn>

Returns the current TaskBoardBuilder<TCard, TColumn> instance.

Controls the rendering of the card.

C#
public TaskBoardBuilder<TCard, TColumn> TemplateView(IHtmlContent templateView)
Parameters:templateViewIHtmlContent

The view that contains the template for Template

Returns:

TaskBoardBuilder<TCard, TColumn>

Returns the current TaskBoardBuilder<TCard, TColumn> instance.

Configures the Tools of the TaskBoard

C#
public TaskBoardBuilder<TCard, TColumn> Toolbar(Action<TaskBoardToolbarSettingsBuilder<TCard, TColumn>> configurator)
Parameters:configuratorAction<TaskBoardToolbarSettingsBuilder<TCard, TColumn>>

The configurator for the toolbar setting.

Returns:

TaskBoardBuilder<TCard, TColumn>

The current instance of the TaskBoardBuilder<TCard, TColumn>.

Configures the Tools of the TaskBoard

C#
public TaskBoardBuilder<TCard, TColumn> Toolbar(bool enabled)
Parameters:enabledbool

Enables or disables the toolbar option.

Returns:

TaskBoardBuilder<TCard, TColumn>

The current instance of the TaskBoardBuilder<TCard, TColumn>.

Configures the width of the TaskBoard wrapper.

C#
public TaskBoardBuilder<TCard, TColumn> Width(string value)
Parameters:valuestring

The value for Width

Returns:

TaskBoardBuilder<TCard, TColumn>

Returns the current TaskBoardBuilder<TCard, TColumn> instance.