Back to Devexpress

SelectionChangedEventArgs.ChangeSource Property

blazor-devexpress-dot-blazor-dot-selectionchangedeventargs.md

latest2.6 KB
Original Source

SelectionChangedEventArgs.ChangeSource Property

Identifies an action that causes selection change.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
public SelectionChangeSource ChangeSource { get; }

Property Value

TypeDescription
SelectionChangeSource

An enumeration value.

|

Available values:

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.

|

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

SelectionChangedEventArgs Class

SelectionChangedEventArgs Members

DevExpress.Blazor Namespace