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

Defines the fluent API for configuring the TaskBoardToolbarItem settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

TCard

TColumn

Syntax:

C#
public class TaskBoardToolbarItemBuilder<TCard, TColumn> where TCard : class where TColumn : class

Inheritance: objectTaskBoardToolbarItemBuilder<TCard, TColumn>

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

Constructors

Initialize the TaskBoardToolbarItemBuilder

C#
public TaskBoardToolbarItemBuilder(TaskBoardToolbarItem settings)
Parameters:settingsTaskBoardToolbarItem

The TaskBoardToolbarItem

Methods

Specifies the click handler of the button.

C#
public TaskBoardToolbarItemBuilder<TCard, TColumn> Click(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The value that configures the click action.

Returns:

TaskBoardToolbarItemBuilder<TCard, TColumn>

Specifies the click handler of the button.

C#
public TaskBoardToolbarItemBuilder<TCard, TColumn> Click(string handler)
Parameters:handlerstring

The value that configures the click action.

Returns:

TaskBoardToolbarItemBuilder<TCard, TColumn>

Specifies the command of the button.

C#
public TaskBoardToolbarItemBuilder<TCard, TColumn> Command(string value)
Parameters:valuestring

The value that configures the command.

Returns:

TaskBoardToolbarItemBuilder<TCard, TColumn>

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

C#
public TaskBoardToolbarItemBuilder<TCard, TColumn> Enable(bool value)
Parameters:valuebool

The value that configures the enable.

Returns:

TaskBoardToolbarItemBuilder<TCard, TColumn>

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

C#
public TaskBoardToolbarItemBuilder<TCard, TColumn> Hidden(bool value)
Parameters:valuebool

The value that configures the hidden.

Returns:

TaskBoardToolbarItemBuilder<TCard, TColumn>

Specifies the HTML attributes of a ToolBar button.

C#
public TaskBoardToolbarItemBuilder<TCard, TColumn> HtmlAttributes(IDictionary<string, object> value)
Parameters:valueIDictionary<string, object>

The value that configures the htmlattributes.

Returns:

TaskBoardToolbarItemBuilder<TCard, TColumn>

Specifies the HTML attributes of a ToolBar button.

C#
public TaskBoardToolbarItemBuilder<TCard, TColumn> HtmlAttributes(object value)
Parameters:valueobject

The value that configures the htmlattributes.

Returns:

TaskBoardToolbarItemBuilder<TCard, TColumn>

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

C#
public TaskBoardToolbarItemBuilder<TCard, TColumn> Icon(string value)
Parameters:valuestring

The value that configures the icon.

Returns:

TaskBoardToolbarItemBuilder<TCard, TColumn>

Specifies the ID of the button.

C#
public TaskBoardToolbarItemBuilder<TCard, TColumn> Id(string value)
Parameters:valuestring

The value that configures the id.

Returns:

TaskBoardToolbarItemBuilder<TCard, TColumn>

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

C#
public TaskBoardToolbarItemBuilder<TCard, TColumn> ImageUrl(string value)
Parameters:valuestring

The value that configures the imageurl.

Returns:

TaskBoardToolbarItemBuilder<TCard, TColumn>

Specifies the name of the button.

C#
public TaskBoardToolbarItemBuilder<TCard, TColumn> Name(string value)
Parameters:valuestring

The value that configures the name.

Returns:

TaskBoardToolbarItemBuilder<TCard, TColumn>

Specifies the command options of the button.

C#
public TaskBoardToolbarItemBuilder<TCard, TColumn> Options(string value)
Parameters:valuestring

The value that configures the options.

Returns:

TaskBoardToolbarItemBuilder<TCard, TColumn>

Specifies the overflow of the button.

C#
public TaskBoardToolbarItemBuilder<TCard, TColumn> Overflow(string value)
Parameters:valuestring

The value that configures the overflow.

Returns:

TaskBoardToolbarItemBuilder<TCard, TColumn>

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

C#
public TaskBoardToolbarItemBuilder<TCard, TColumn> Primary(bool value)
Parameters:valuebool

The value that configures the primary.

Returns:

TaskBoardToolbarItemBuilder<TCard, TColumn>

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

C#
public TaskBoardToolbarItemBuilder<TCard, TColumn> ShowIcon(string value)
Parameters:valuestring

The value that configures the showicon.

Returns:

TaskBoardToolbarItemBuilder<TCard, TColumn>

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

C#
public TaskBoardToolbarItemBuilder<TCard, TColumn> ShowText(string value)
Parameters:valuestring

The value that configures the showtext.

Returns:

TaskBoardToolbarItemBuilder<TCard, TColumn>

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

C#
public TaskBoardToolbarItemBuilder<TCard, TColumn> SpriteCssClass(string value)
Parameters:valuestring

The value that configures the spritecssclass.

Returns:

TaskBoardToolbarItemBuilder<TCard, TColumn>

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

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

The value that configures the template.

Returns:

TaskBoardToolbarItemBuilder<TCard, TColumn>

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

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

A Template component that configures the template.

Returns:

TaskBoardToolbarItemBuilder<TCard, TColumn>

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

C#
public TaskBoardToolbarItemBuilder<TCard, TColumn> TemplateHandler(string value)
Parameters:valuestring

The value that configures the template.

Returns:

TaskBoardToolbarItemBuilder<TCard, TColumn>

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

C#
public TaskBoardToolbarItemBuilder<TCard, TColumn> TemplateId(string value)
Parameters:valuestring

The value that configures the template.

Returns:

TaskBoardToolbarItemBuilder<TCard, TColumn>

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

C#
public TaskBoardToolbarItemBuilder<TCard, TColumn> TemplateView(MvcHtmlString value)
Parameters:valueMvcHtmlString

The value that configures the template.

Returns:

TaskBoardToolbarItemBuilder<TCard, TColumn>

Sets the text of the button.

C#
public TaskBoardToolbarItemBuilder<TCard, TColumn> Text(string value)
Parameters:valuestring

The value that configures the text.

Returns:

TaskBoardToolbarItemBuilder<TCard, TColumn>

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

C#
public TaskBoardToolbarItemBuilder<TCard, TColumn> Togglable(bool value)
Parameters:valuebool

The value that configures the togglable.

Returns:

TaskBoardToolbarItemBuilder<TCard, TColumn>

Specifies the type of the button.

C#
public TaskBoardToolbarItemBuilder<TCard, TColumn> Type(string value)
Parameters:valuestring

The value that configures the type.

Returns:

TaskBoardToolbarItemBuilder<TCard, TColumn>