New to Telerik UI for ASP.NET CoreStart a free 30-day trial

Transfer ListBox Items on Double Click

Environment

ProductProgress® Telerik® UI ListBox for UI for ASP.NET Core

Description

How can I transfer items between ListBoxes by double-clicking the Telerik UI for ASP.NET Core ListBox?

Solution

  1. Handle the dblclick event on the items in both ListBoxes.
  2. In the event handler, based on the ListBox, manually execute the transferTo or transferFrom command.
Index.cshtml
@(Html.Kendo().ListBox()
            .Name("listBoxA")
            .ConnectWith("listBoxB")
            .BindTo(new List<string>() { "Value 1", "Value 2", "Value 3"}))

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

More ASP.NET Core ListBox Resources

See Also