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

Defines the fluent API for configuring ListBoxToolbarSettings

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class ListBoxToolbarSettingsBuilder

Inheritance: objectListBoxToolbarSettingsBuilder

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

Constructors

ListBoxToolbarSettingsBuilder method.

C#
public ListBoxToolbarSettingsBuilder(ListBoxToolbarSettings container)
Parameters:containerListBoxToolbarSettings

Properties

Gets the settings being configured.

C#
protected ListBoxToolbarSettings Container { get; }

Methods

Represents the listbox toolbar positions.

C#
public ListBoxToolbarSettingsBuilder Position(ListBoxToolbarPosition value)
Parameters:valueListBoxToolbarPosition

The value for Position

Returns:

ListBoxToolbarSettingsBuilder

Returns the current ListBoxToolbarSettingsBuilder instance.

Example:
C#
@(Html.Kendo().ListBox()
.Name("listBox")
.Toolbar(toolbar =>
{
toolbar.Position(Kendo.Mvc.UI.Fluent.ListBoxToolbarPosition.Right);
})
)

An collection of tools displayed in the ListBox's Toolbar. Tools can be built-in ("moveUp", "moveDown", "remove", "transferAllFrom", "transferAllTo", "transferFrom", "transferTo").The "moveUp" tool moves up the item that is currently selected by the end user.The "moveDown" tool moves down the item that is currently selected by the end user.The "remove" tool removes the item(s) that are currently selected by the end user.The "transferAllFrom" tool moves all items from current ListBox widget to the target widget related with connectWith option.The "transferAllTo" tool moves all items from target widget related with connectWith option to the current ListBox widget.The "transferFrom" tool moves all selected items from current ListBox widget to the target widget related with connectWith option.The "transferTo" tool moves all selected items from target widget related with connectWith option to the current ListBox widget.

C#
public ListBoxToolbarSettingsBuilder Tools(Action<ListBoxToolFactory> configurator)
Parameters:configuratorAction<ListBoxToolFactory>

The configurator for the tools setting.

Returns:

ListBoxToolbarSettingsBuilder

The current ListBoxToolbarSettingsBuilder instance.

Example:
C#
@(Html.Kendo().ListBox()
.Name("listBox")
.Toolbar(toolbar =&gt;
{
toolbar.Tools(tools =&gt; tools
.MoveUp()
.MoveDown()
.TransferTo()
.TransferFrom()
.TransferAllTo()
.TransferAllFrom()
.Remove()
);
})
)