SelectionChangedEventArgs.ChangeSource Property
Identifies an action that causes selection change.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v25.2.dll
NuGet Package: DevExpress.Blazor
Declaration
public SelectionChangeSource ChangeSource { get; }
Property Value
| Type | Description |
|---|---|
| SelectionChangeSource | An enumeration value. |
Available values:
| Name | Description |
|---|---|
| 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 |
| ApiCall | For ListBox with multiple selection only: Selection changes when the SelectAllAsync or DeselectAllAsync method is called. |
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.