The Blazor ListView component is a list-like interface that allows you to select an item or multiple items. It represents data in an interactive hierarchical structure across different layouts or views.
Powerful data binding allows data to be loaded from an array of primitive data, JSON data collections, or remote data sources. It supports complex data with field mapping; different kinds of data services such as OData, OData V4, and web API; and data formats such as XML, JSON, JSONP, CSV, and HTML tables.
The Blazor ListView component supports UI virtualization to improve performance while loading huge amounts of data. This creates a fixed number of items regardless of data volume and displays the relevant data instead of creating all items at once.
Sort data programmatically in ascending or descending order. Also use custom sorting logic.
Group ListView data programmatically. You can identify a group name from group headers in the view.
The ListView component represents a nested data object structure in a list of lists. The initial screen displays the first-level list items and the next level is displayed when users interact with the first.
When a user clicks or taps an item, the Blazor ListView component enables the selection of the list item by default.
The Blazor ListView component supports multiple selection through checkboxes to the right or left of the list items. Users can select or clear a series of items without using the keyboard.
Users can disable selection by handling events. Preserve and restore the selected values in a ListView so that users can continue their work from a previously saved state.
Arrange the list item content with multiline text, icons, and avatars.
Completely customize the Blazor ListView component headers, list items, and group headers using template options. Users can arrange their content in flexible formats like image view, multiline text view, and mixed mode.
The Blazor ListView component responds to screen sizes and adapts its contents to fit any device. It also recognizes touch gestures, enabling items to be selected or cleared when a tap or double-tap action is performed. This provides the best user experience on phones, tablets, and desktops.
In the Blazor ListView component, you have control over all the UI elements and behaviors through a rich set of developer-friendly APIs.
Easily get started with the Blazor ListView using a few simple lines of C# code as demonstrated below. Also explore our Blazor ListView example that shows you how to render and configure the ListView.
@using Syncfusion.Blazor
@using Syncfusion.Blazor.Lists
<SfListView DataSource="@Data">
<ListViewFieldSettings TValue="DataModel" Id="Id" Text="Text"></ListViewFieldSettings>
</SfListView>
@code
{
private DataModel[] Data =
{
new DataModel { Text = "ArtWork", Id = "list-01" },
new DataModel { Text = "Abstract", Id = "list-02" },
new DataModel { Text = "Modern Painting", Id = "list-03" },
new DataModel { Text = "Ceramics", Id = "list-04" },
new DataModel { Text = "Animation Art", Id = "list-05" },
new DataModel { Text = "Oil Painting", Id = "list-06" }
};
public class DataModel
{
public string Text { get; set; }
public string Id { get; set; }
}
}
ListView is also available in Angular, React, Vue, and JavaScript frameworks, built from their own TypeScript libraries. Check out the different ListView platforms from the links below:
You can find our Blazor ListView demo here.
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.