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

Defines the fluent API for configuring the ListBoxToolbarSettings settings.

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

C#
public ListBoxToolbarSettingsBuilder(ListBoxToolbarSettings settings)
Parameters:settingsListBoxToolbarSettings

Methods

The position relative to the ListBox element, at which the toolbar will be shown. Predefined values are "bottom", "top", "left", "right".

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

The value that configures the position.

Returns:

ListBoxToolbarSettingsBuilder

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

A collection of tools that are used to interact with the ListBox. The built-in tools are:

  • "moveUp" - Moves up the selected ListBox items.
  • "moveDown" - Moves down the selected ListBox items.
  • "remove" - Removes the selected ListBox items.
  • "transferTo" - Moves the selected items from the current ListBox to the target that is defined in the connectWith option.
  • "transferFrom" - Moves the selected items from the ListBox that is defined in the connectWith option to the current ListBox.
  • "transferAllTo" - Moves all items from the current ListBox to the target that is defined in the connectWith option.
  • "transferAllFrom" - Moves all items from the ListBox that is defined in the connectWith option to the current ListBox.
C#
public ListBoxToolbarSettingsBuilder Tools(Action<ListBoxToolFactory> configurator)
Parameters:configuratorAction<ListBoxToolFactory>

The configurator for the tools setting.

Returns:

ListBoxToolbarSettingsBuilder

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