Blazor ListBox Example - Drag and Drop

ListBox / Drag and Drop

This sample demonstrates the drag and drop functionalities of a ListBox component. Drag an item or a group of selected items and drop it within the same listbox or into another listbox.

Loading Syncfusion Blazor Server Demos…

Group A

Group B

The ListBox component allows the user to drag and drop a desired item from one listbox into another listbox. The drag and drop feature can be enabled by using the following properties:

  • To drag and drop a desired item within the ListBox, the AllowDragAndDrop property should be set to true.
  • To drag and drop between multiple listboxes, the Scope property should be set to both the listboxes.

In this sample, a list of countries is loaded in Group A and another list of countries is loaded in Group B. You can drag and drop an item or multiple items from Group A to Group B, and vice versa.

More information about drag and drop functionalities of the Blazor ListBox component can be found in the documentation section.

Transform your Blazor web apps today with Syncfusion® Blazor components
100+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE