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

TaskBoardToolbarSettingsItemBuilder

Methods

Type(System.String)

Specifies the type of the button.

Parameters

value - System.String

The value that configures the type.

Example


            @(Html.Kendo().TaskBoard()
                    .Name("taskBoard")
                    .Toolbar(t => t.Items(i => i.Add().Type("button")))
            )

Overflow(System.String)

Specifies the overflow of the button.

Parameters

value - System.String

The value that configures the overflow.

Example


            @(Html.Kendo().TaskBoard()
                    .Name("taskBoard")
                    .Toolbar(t => t.Items(i => i.Add().Overflow("overflow")))
            )

Click(System.String)

Specifies the click handler of the button.

Parameters

value - System.String

The value that configures the click.

Example


            @(Html.Kendo().TaskBoard()
                    .Name("taskBoard")
                    .Toolbar(t => t.Items(i => i.Add().Click("handlerName")))
            )

Command(System.String)

Specifies the command of the button.

Parameters

value - System.String

The value that configures the command.

Example


            @(Html.Kendo().TaskBoard()
                    .Name("taskBoard")
                    .Toolbar(t => t.Items(i => i.Add().Command("customAddCardCommand")))
            )

Options(System.String)

Specifies the command options of the button.

Parameters

value - System.String

The value that configures the options.

Example


            @(Html.Kendo().TaskBoard()
                    .Name("taskBoard")
                    .Toolbar(t => t.Items(i => i.Add().Options("options")))
            )

Name(System.String)

Specifies the name of the button.

Parameters

value - System.String

The value that configures the name.

Example


            @(Html.Kendo().TaskBoard()
                    .Name("taskBoard")
                    .Toolbar(t => t.Items(i => i.Add().Name("name")))
            )

Togglable(System.Boolean)

Specifies if the button is togglable, e.g. has a selected and unselected state.

Parameters

value - System.Boolean

The value that configures the togglable.

Example


            @(Html.Kendo().TaskBoard()
                    .Name("taskBoard")
                    .Toolbar(t => t.Items(i => i.Add().Togglable(true)))
            )

Text(System.String)

Sets the text of the button.

Parameters

value - System.String

The value that configures the text.

Example


            @(Html.Kendo().TaskBoard()
                    .Name("taskBoard")
                    .Toolbar(t => t.Items(i => i.Add().Text("customText")))
            )

Template(System.String)

Specifies what element will be added in the ToolBar wrapper. Items with template does not have a type.

Parameters

value - System.String

The value that configures the template.

Example


            @(Html.Kendo().TaskBoard()
                    .Name("taskBoard")
                    .Toolbar(t => t.Items(i => i.Add().Template("template")))
            )

TemplateId(System.String)

Specifies what element will be added in the ToolBar wrapper. Items with template does not have a type.

Parameters

value - System.String

The value that configures the template.

Example


            @(Html.Kendo().TaskBoard()
                    .Name("taskBoard")
                    .Toolbar(t => t.Items(i => i.Add().TemplateId("templateId")))
            )

TemplateView(System.Web.Mvc.MvcHtmlString)

Specifies what element will be added in the ToolBar wrapper. Items with template does not have a type.

Parameters

value - System.Web.Mvc.MvcHtmlString

The value that configures the template.

Example


            @(Html.Kendo().TaskBoard()
                    .Name("taskBoard")
                    .Toolbar(t => t.Items(i => i.Add().TemplateView(new System.Web.Mvc.MvcHtmlString("<div>#= ColumnName #</div>"))))
            )

TemplateHandler(System.String)

Specifies what element will be added in the ToolBar wrapper. Items with template does not have a type.

Parameters

value - System.String

The value that configures the template.

Example


            @(Html.Kendo().TaskBoard()
                    .Name("taskBoard")
                    .Toolbar(t => t.Items(i => i.Add().TemplateHandler("handler")))
            )

Template(Kendo.Mvc.UI.TemplateBuilder)

Specifies what element will be added in the ToolBar wrapper. Items with template does not have a type.

Parameters

template - TemplateBuilder<TModel>

A Template component that configures the template.

Example


            @(Html.Kendo().TaskBoard()
                    .Name("taskBoard")
                    .Toolbar(t => t.Items(i => i.Add().Template(Html.Kendo().Template().AddComponent(a => a.TextBox()))))
            )

ShowText(System.String)

Specifies where the text will be displayed. Possible values are: "toolbar", "overflow" or "both" (default).

Parameters

value - System.String

The value that configures the showtext.

Example


            @(Html.Kendo().TaskBoard()
                    .Name("taskBoard")
                    .Toolbar(t => t.Items(i => i.Add().ShowText("text")))
            )

Primary(System.Boolean)

Specifies whether the button is primary. Primary buttons receive different styling.

Parameters

value - System.Boolean

The value that configures the primary.

Example


            @(Html.Kendo().TaskBoard()
                    .Name("taskBoard")
                    .Toolbar(t => t.Items(i => i.Add().Primary(true)))
            )

HtmlAttributes(System.Object)

Specifies the HTML attributes of a ToolBar button.

Parameters

value - System.Object

The value that configures the htmlattributes.

Example


            @(Html.Kendo().TaskBoard()
                    .Name("taskBoard")
                    .Toolbar(t => t.Items(i => i.Add().HtmlAttributes(new { @class = "my-custom-class", id = "myAddButton", style = "color: red;" })))
            )

HtmlAttributes(System.Collections.Generic.IDictionary)

Parameters

value - System.Collections.Generic.IDictionary<String,Object>

Enable(System.Boolean)

Specifies whether the control is initially enabled or disabled. Default value is "true".

Parameters

value - System.Boolean

The value that configures the enable.

Example


            @(Html.Kendo().TaskBoard()
                    .Name("taskBoard")
                    .Toolbar(t => t.Items(i => i.Add().Enable(true)))
            )

Hidden(System.Boolean)

Determines if a button is visible or hidden. By default buttons are visible.

Parameters

value - System.Boolean

The value that configures the hidden.

Example


            @(Html.Kendo().TaskBoard()
                    .Name("taskBoard")
                    .Toolbar(t => t.Items(i => i.Add().Hidden(true)))
            )

SpriteCssClass(System.String)

Defines a CSS class (or multiple classes separated by spaces) which will be used for button icon.

Parameters

value - System.String

The value that configures the spritecssclass.

Example


            @(Html.Kendo().TaskBoard()
                    .Name("taskBoard")
                    .Toolbar(t => t.Items(i => i.Add().SpriteCssClass("my-sprite-class")))
            )

ImageUrl(System.String)

If set, the ToolBar will render an image with the specified URL in the button.

Parameters

value - System.String

The value that configures the imageurl.

Example


            @(Html.Kendo().TaskBoard()
                    .Name("taskBoard")
                    .Toolbar(t => t.Items(i => i.Add().ImageUrl("imageUrl")))
            )

ShowIcon(System.String)

Specifies where the button icon will be displayed. Possible values are: "toolbar", "overflow" or "both" (default).

Parameters

value - System.String

The value that configures the showicon.

Example


            @(Html.Kendo().TaskBoard()
                    .Name("taskBoard")
                    .Toolbar(t => t.Items(i => i.Add().ShowIcon("gear")))
            )

Icon(System.String)

Sets icon for the item. The icon should be one of the existing in the Kendo UI theme sprite.

Parameters

value - System.String

The value that configures the icon.

Example


            @(Html.Kendo().TaskBoard()
                    .Name("taskBoard")
                    .Toolbar(t => t.Items(i => i.Add().Icon("gear")))
            )

Id(System.String)

Specifies the ID of the button.

Parameters

value - System.String

The value that configures the id.

Example


            @(Html.Kendo().TaskBoard()
                    .Name("taskBoard")
                    .Toolbar(t => t.Items(i => i.Add().Id("toolbarItemId")))
            )

In this article
Not finding the help you need?