The Blazor ListBox control is a graphical user interface for displaying a list of items with multi-selection options. It has a rich appearance and allows users to select one or more items from the list using checkboxes or keyboard interactions. It has several out-of-the-box features, such as data binding, sorting, grouping, reordering, dragging and dropping, UI customization, and accessibility.
You can bind data from a variety of data sources such as JSON data collections or remote data sources using different kinds of adaptors such as OData, OData V4, URL, JSON, and Web API. The control uses JavaScript data manager to manage data and also has customization options for data requests and processing.
Blazor ListBox selection is used to highlight the selected items. By default, multi-selection is enabled in the ListBox. You can modify it to single selection.
When a user clicks or taps an item, the Blazor ListBox control enables the selection of the list item by default.
The Blazor ListBox component supports multiple selection using touch or keyboard actions.
Select items using checkboxes. You can also select all items.
In the Blazor ListBox component, you can reorder selected items within the list. Items can be moved up and down using keyboard interactions or a toolbar action.
TThe high-performance Blazor ListBox control allows you to drag and drop items between one or more list boxes. You can customize the placeholder and dragged item hint.
The Blazor ListBox toolbar allows you to perform predefined actions.
Group the list items with the corresponding category to pick an item quickly. This feature improves the visual experience of the user.
In the Blazor ListBox component, you can customize the appearance (style) of each item displayed in the list box.
You can display items in ascending or descending order.
The Blazor Listbox supports several built-in themes such as Tailwind CSS, Bootstrap 5, Bootstrap 4, Bootstrap, Material, Fabric, Fluent, and high contrast. Users can customize any one of these built-in themes or create new themes to achieve their own desired look and feel either by simply overriding SASS variables or using our Theme Studio application.
Filtering helps view particular or related items in a Listbox that meet a given criteria.
Developers can customize all UI elements and control their behaviors according to the end user’s requirement using the control’s rich set of client-side APIs.
Easily get started with the Blazor ListBox using a few simple lines of C# code example as demonstrated below. Also explore our Blazor ListBox Example that shows you how to render and configure the Blazor ListBox component.
@using Syncfusion.Blazor.DropDowns
<SfListBox Value=@value DataSource="@vehicleData" TValue="string[]" TItem="ListItem">
<ListBoxFieldSettings Text="Text" Value="Id"></ListBoxFieldSettings>
</SfListBox>
@code
{
private string[] value = new string[] { "List-01" };
private List<ListItem> vehicleData = new List<ListItem>
{
new ListItem { Text = "Hennessey Venom", Id = "List-01" },
new ListItem { Text = "Bugatti Chiron", Id = "List-02" },
new ListItem { Text = "Bugatti Veyron Super Sport", Id = "List-03" },
new ListItem { Text = "SSC Ultimate Aero", Id = "List-04" },
new ListItem { Text = "Koenigsegg CCR", Id = "List-05" },
new ListItem { Text = "McLaren F1", Id = "List-06" },
new ListItem { Text = "Aston Martin One-77", Id = "List-07" },
new ListItem { Text = "Jaguar XJ220", Id = "List-08" },
new ListItem { Text = "McLaren P1", Id = "List-09" },
new ListItem { Text = "Ferrari LaFerrari", Id = "List-10" }
};
public class ListItem
{
public string Text { get; set; }
public string Id { get; set; }
}
}
The ListBox component is also available in our Angular, React, Vue, and JavaScript frameworks, built from their own TypeScript libraries. Check out the ListBox component on different platforms from the following links.
Syncfusion Blazor ListBox provides the following features:
We do not sell the Blazor ListBox separately. It is only available for purchase as part of the Syncfusion team license. This contains over 1,800 components and frameworks, including the Blazor ListBox. The price of the team license starts at $395 per month for 5 developers, and includes support and updates until the subscription expires. In addition, we might offer discounts based on currently active promotions. Please contact our product specialists today to see if you qualify for any additional discounts.
You can find our Blazor ListBox demo here.
No, our 1,800+ components and frameworks for web, mobile, and desktop, including our Blazor ListBox, are not sold individually. They are only available as part of a team license. However, we have competitively priced the product, so it only costs a little bit more than what some other vendors charge for their ListBox component alone. We have also found that, in our experience, our customers usually start off using one of our products and then expand to several products quickly, so we felt it was best to offer all 1,800+ components and frameworks for a subscription fee that starts at $395 per month for a team of 5 developers. Additionally, we might be able to offer discounts based on currently active promotions. Please contact our product specialists today to see if you qualify for any additional discounts.
No, this is a commercial product and requires a paid license. However, a free community license is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue, 5 or fewer developers, and 10 or fewer total employees.
A good place to start would be our comprehensive getting started documentation.
Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion is proud to hold the following industry awards.