Back to Devexpress

DxListBox<TData, TValue> Members

blazor-devexpress-dot-blazor-dot-dxlistbox-2-dot-underscore-members.md

latest13.0 KB
Original Source

DxListBox<TData, TValue> Members

A component that can connect to a data source and display a list of selectable items.

Constructors

NameDescription
DxListBox()Initializes a new instance of the DxListBox<TData, TValue> class.

Properties

NameDescription
AttributesSpecifies a collection of standard HTML attributes applied to the component. Inherited from DxEditorBase.
ColumnCellDisplayTemplateSpecifies a template used to display column cells in the List Box.
ColumnsAllows you to add columns to the List Box.
CssClassAssigns a CSS class to the component. Inherited from DxEditorBase.
CustomDataSpecifies an asynchronous function that loads a list editor’s data based on the specified load options. Inherited from DxListEditorBase<TData, TValue>.
DataSpecifies a collection that supplies data for a list editor (ComboBox, List Box, TagBox). Inherited from DxListEditorBase<TData, TValue>.
DataAsyncSpecifies an asynchronous function that returns data for a list editor (ComboBox, List Box, TagBox). Inherited from DxListEditorBase<TData, TValue>.
DisabledFieldNameSpecifies the Boolean field that defines disabled states of component items. Inherited from DxListEditorBase<TData, TValue>.
EmptyDataAreaTemplateSpecifies the template used to display custom content in the List Box if there is not items to display.
EnabledSpecifies whether the component can respond to user interactions. Inherited from DxEditorBase.
GroupFieldNameSpecifies the name of a data source field whose values are used to group list items. Inherited from DxListEditorBase<TData, TValue>.
GroupHeaderDisplayTemplateSpecifies the template used to display group headers when List Box items are grouped.
IdSpecifies the component’s unique identifier. Inherited from DxEditorBase.
ItemDisplayTemplateSpecifies a display template for List Box items.
ItemTemplateObsolete. Specifies a template used to display component items. Inherited from DxListEditorBase<TData, TValue>.
KeyFieldNameSpecifies the key field used for data item identification when the list editor uses a business object as a value. Inherited from DxListEditorBase<TData, TValue>.
KeyFieldNamesSpecifies the names of data fields that contain key values. The combination of key values forms a unique identifier for a component item. Inherited from DxListEditorBase<TData, TValue>.
ListRenderModeSpecifies how the list editor renders its items. Inherited from DxListEditorBase<TData, TValue>.
ReadOnlySpecifies whether the read-only mode is active. Inherited from DxEditorBase.
SearchBoxInputDelaySpecifies the delay between the last input in the search box and when the list box displays matching values.
SearchBoxNullTextSpecifies the prompt text displayed in the search box when it is empty.
SearchTextSpecifies the text that the List Box uses to filter and highlight data.
SearchTextParseModeSpecifies how the list box treats search words.
SelectionModeSpecifies selection mode.
ShowCheckboxesSpecifies whether to display item checkboxes.
ShowSearchBoxSpecifies whether the List Box displays the search box.
ShowSelectAllCheckboxSpecifies whether to display the Select All checkbox.
ShowValidationSuccessStateSpecifies whether the editor indicates successful validation. When an input value is valid, the editor displays a green outline and can show a success icon. Inherited from DxEditorBase.
SizeModeSpecifies the component’s size. Inherited from DxEditorBase.
TextFieldNameSpecifies the data source field that contains text for component items. Inherited from DxListEditorBase<TData, TValue>.
ValidationEnabledSpecifies whether the editor validates user input. Inherited from DxEditorBase.
ValueGets or sets the selected item value.
ValueExpressionSpecifies a lambda expression that identifies the Value property’s bound value when the List Box is in the EditForm.
ValueFieldNameSpecifies the data source field that populates values for component items. Inherited from DxListEditorBase<TData, TValue>.
ValuesProvides access to the List Box’s selected value/item collection.
ValuesExpressionSpecifies a lambda expression that identifies the Values property’s bound values when the List Box is placed in the EditForm.

Methods

NameDescription
BeginUpdate()Suspends component updates caused by parameter changes and method calls until the EndUpdate() method is called. Inherited from DxEditorBase.
ClearFilter()Clears the filter applied to list box data.
DeselectAllAsync()Deselects all available items in the List Box.
EndUpdate()Resumes component updates (when the BeginUpdate() method pauses updates) and re-renders the component. Inherited from DxEditorBase.
Equals(Object, Object) staticDetermines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object)Determines whether the specified object is equal to the current object. Inherited from Object.
GetFilterCriteria()Returns the filter criteria applied to List Box data.
GetHashCode()Serves as the default hash function. Inherited from Object.
GetType()Gets the Type of the current instance. Inherited from Object.
MakeDataItemVisibleAsync(TData)Makes the row bound to the specified data item visible on screen.
MakeItemVisible(Int32)Makes the item with the specified index visible on screen.
MemberwiseClone() protectedCreates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) staticDetermines whether the specified Object instances are the same instance. Inherited from Object.
Reload()Reloads a list editor’s data. Inherited from DxListEditorBase<TData, TValue>.
SelectAllAsync()Selects all available items in the List Box.
SetFilterCriteria(CriteriaOperator)Applies a filter to List Box data.
ToString()Returns a string that represents the current object. Inherited from Object.

Events

NameDescription
FilterCriteriaChangedFires when filter criteria applied to List Box data change.
ItemClickFires when a user clicks/taps a list box item or focuses it and presses Enter.
SearchTextChangedFires when the search text changes.
SelectedDataItemsChangedFires when selection changes.
SelectedItemsChangedObsolete. Fires after the selection changes.
ValueChangedAllows you to respond to the List Box’s selected value changes.
ValuesChangedFires after a collection of selected values changes.
ValuesChangingFires when the List Box’s selected values are being changed. Use this event to validate/cancel the newly selected values.

See Also

DxListBox<TData, TValue> Class

DevExpress.Blazor Namespace