Back to Devexpress

SelectionChangeSource Enum

blazor-devexpress-dot-blazor-08ae3515.md

latest2.5 KB
Original Source

SelectionChangeSource Enum

Lists values that specify the selection change source.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
public enum SelectionChangeSource

Members

NameDescription
UserAction

Selection changes when a user selects items using mouse/keyboard, or clicks the built-in Select All checkbox (only for ListBox with multiple selection).

| | ParameterChange |

Selection changes when Blazor updates the component’s Value or Values parameter. This happens when you define parameters in component markup or update them using BeginUpdate() and EndUpdate() methods.

| | ApiCall |

For ListBox with multiple selection only: Selection changes when the SelectAllAsync or DeselectAllAsync method is called.

|

The following properties accept/return SelectionChangeSource values:

Remarks

Handle the DxComboBox.SelectedDataItemChanged, DxListBox.SelectedDataItemsChanged, or DxTagBox.SelectedDataItemsChanged event to respond to item selection changes. Use the ChangeSource argument property to identify the action that caused the selection change.

ComboBox/TagBox items can be selected/deselected in two ways: UserAction, ParameterChange. ListBox item selection can be changed in three ways: UserAction, ParameterChange, ApiCall.

Refer to DxComboBox.SelectedDataItemChanged, DxListBox.SelectedDataItemsChanged, and DxTagBox.SelectedDataItemsChanged event descriptions for examples.

See Also

DevExpress.Blazor Namespace