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

ListBoxToolbarSettingsBuilder

Methods

Position(Kendo.Mvc.UI.Fluent.ListBoxToolbarPosition)

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

Parameters

value - ListBoxToolbarPosition

The value that configures the position.

Example


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

Tools(System.Action)

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.

Parameters

configurator - System.Action<ListBoxToolFactory>

The configurator for the tools setting.

Example


            @(Html.Kendo().ListBox()
                .Name("listBox")
                .Toolbar(toolbar =>
                {
                    toolbar.Tools(tools => tools
                        .MoveUp()
                        .MoveDown()
                        .TransferTo()
                        .TransferFrom()
                        .TransferAllTo()
                        .TransferAllFrom()
                       .Remove()
                    );
                })
            )

In this article
Not finding the help you need?