ListBox TagHelper Overview

The Telerik UI ListBox TagHelper for ASP.NET Core is a server-side wrapper for the Kendo UI ListBox widget.

The ListBox provides suggestions depending on the typed text and allows multiple value entries. displays a list of data that is contained in a box and allows single or multiple selection, reordering of selected items, and deleting items and features keyboard navigation as well as the dragging and dropping of items. You can also connect the ListBox with another list-box and customize the widget with the use of templates, toolbar positioning, placeholder and hint, and localization of its command buttons messages.

Initializing the ListBox

The following example demonstrates how to define the ListBox by using the ListBox TagHelper.


        <kendo-listbox name="optional" connect-with="selected" bind-to="ViewBag.Attendees">
            <toolbar position="ListBoxToolbarPosition.Right"
                     tools='new string[] {moveUp", "moveDown", "transferTo", "transferFrom", "transferAllTo", "transferAllFrom", "remove"}' />
        </kendo-listbox>

        <kendo-listbox name="selected" selectable="ListBoxSelectable.Multiple" bind-to="new List<string>()">
        </kendo-listbox>


        @(Html.Kendo().ListBox().Name("optional")
                .ConnectWith("selected")
                .Toolbar(x => x.Position(ListBoxToolbarPosition.Right)
                    .Tools(y =>
                    {
                        y.MoveUp();
                        y.MoveDown();
                        y.TransferTo();
                        y.TransferFrom();
                        y.TransferAllTo();
                        y.TransferAllFrom();
                        y.Remove();

                    }))
                .BindTo(ViewBag.Attendees)
        )

        @(Html.Kendo().ListBox().Name("selected")
            .Selectable(ListBoxSelectable.Multiple)
            .BindTo(new List<string>())
        )

Functionality and Features

See Also

In this article
Not finding the help you need? Improve this article