Blazorise List View API

Explore the Blazorise List View API reference for parameters, events, methods, and related types.

For examples and usage guidance, see the List View documentation.

API

Parameters

ParameterDefaultType
AttributesnullDictionary<string, object>

Captures all the custom attribute that are not part of Blazorise component.
ChildContentnullRenderFragment

Specifies the content to be rendered inside this ListView.
Class—string

Custom css class-names.
DatanullIEnumerable<TItem>

Specifies the items data source.
Flushfalsebool

Remove some borders and rounded corners to render list group items edge-to-edge in a parent container (e.g., cards).
Height—string

Sets the ListView Height. Defaults to empty.
ItemTemplatenullRenderFragment<ItemContext<TItem>>

Specifies the content to be rendered inside each item of the ListView.
MaxHeight"250px"string

Sets the ListView MaxHeight. Defaults to 250px.
ModeStaticListGroupMode

Specifies the list-group behavior mode.
Possible values:StaticSelectable
Scrollabletruebool

Makes the list group scrollable by adding a vertical scrollbar.
SelectedItemnullTItem

Currently selected item.
SelectedItemsnullList<TItem>

Currently selected items.
SelectionModeSingleListGroupSelectionMode

Specifies the list-group selection mode.
Possible values:SingleMultiple
Style—string

Custom styles.
Virtualizefalsebool

Determines whether the listview will use the Virtualize functionality.

Events

EventType
DisabledItemFunc<TItem, bool>

Method used to get the disabled items from the supplied data source.
ItemBackgroundFunc<TItem, Background>

Method used to get the background color for the item.
ItemClassFunc<TItem, string>

Method used to get the class for the item.
ItemMarginFunc<TItem, IFluentSpacing>

Method used to get the margin for the item.
ItemPaddingFunc<TItem, IFluentSpacing>

Method used to get the padding for the item.
ItemStyleFunc<TItem, string>

Method used to get the style for the item.
ItemTextColorFunc<TItem, TextColor>

Method used to get the text color for the item.
SelectedItemChangedEventCallback<TItem>

Occurs after the selected item has changed.
SelectedItemsChangedEventCallback<List<TItem>>

Occurs after the selected items has changed.
TextFieldFunc<TItem, string>

Method used to get the display field from the supplied data source.
ValueFieldFunc<TItem, string>

Method used to get the value field from the supplied data source.
On this page