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

Defines the fluent API for configuring the TaskBoardEditableSettingsButton settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

TCard

TColumn

Syntax:

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

Inheritance: objectTaskBoardEditableSettingsButtonBuilder<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 TaskBoardEditableSettingsButtonBuilder

C#
public TaskBoardEditableSettingsButtonBuilder(TaskBoardEditableSettingsButton settings)
Parameters:settingsTaskBoardEditableSettingsButton

The TaskBoardEditableSettingsButton

Methods

The command of the button.

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

The value that configures the command.

Returns:

TaskBoardEditableSettingsButtonBuilder<TCard, TColumn>

Example:
C#
@(Html.Kendo().TaskBoard()
.Name("taskBoard")
.Editable(e =&gt; e.Buttons(b =&gt; b.Add().Command("MyCustomCommand")))
)

The icon of the button.

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

The value that configures the icon.

Returns:

TaskBoardEditableSettingsButtonBuilder<TCard, TColumn>

Example:
C#
@(Html.Kendo().TaskBoard()
.Name("taskBoard")
.Editable(e =&gt; e.Buttons(b =&gt; b.Add().Icon("gear")))
)

The name of the button.

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

The value that configures the name.

Returns:

TaskBoardEditableSettingsButtonBuilder<TCard, TColumn>

Example:
C#
@(Html.Kendo().TaskBoard()
.Name("taskBoard")
.Editable(e =&gt; e.Buttons(b =&gt; b.Add().Name("resetCard")))
)

The command options of the button.

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

The value that configures the options.

Returns:

TaskBoardEditableSettingsButtonBuilder<TCard, TColumn>

Example:
C#
@(Html.Kendo().TaskBoard()
.Name("taskBoard")
.Editable(e =&gt; e.Buttons(b =&gt; b.Add().Options("options")))
)

Toggles whether the color of the button to be primary or not.

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

The value that configures the primary.

Returns:

TaskBoardEditableSettingsButtonBuilder<TCard, TColumn>

Example:
C#
@(Html.Kendo().TaskBoard()
.Name("taskBoard")
.Editable(e =&gt; e.Buttons(b =&gt; b.Add().Primary(true)))
)

The class name of the icon element.

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

The value that configures the spritecssclass.

Returns:

TaskBoardEditableSettingsButtonBuilder<TCard, TColumn>

Example:
C#
@(Html.Kendo().TaskBoard()
.Name("taskBoard")
.Editable(e =&gt; e.Buttons(b =&gt; b.Add().SpriteCssClass("custom-class")))
)

The text of the button.

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

The value that configures the text.

Returns:

TaskBoardEditableSettingsButtonBuilder<TCard, TColumn>

Example:
C#
@(Html.Kendo().TaskBoard()
.Name("taskBoard")
.Editable(e =&gt; e.Buttons(b =&gt; b.Add().Text("Default")))
)