Back to Devexpress

RepositoryItemRadioGroup.AllowAsyncSelection Property

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitemradiogroup-79468a37.md

latest3.3 KB
Original Source

RepositoryItemRadioGroup.AllowAsyncSelection Property

Gets or sets whether the RadioGroup.SelectedIndex and EditValue properties can be out of sync when handling the EditValueChanged event.

Namespace : DevExpress.XtraEditors.Repository

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(true)]
[DXCategory("Behavior")]
public bool AllowAsyncSelection { get; set; }
vb
<DXCategory("Behavior")>
<DefaultValue(True)>
Public Property AllowAsyncSelection As Boolean

Property Value

TypeDefaultDescription
Booleantrue

true if the RadioGroup.SelectedIndex and EditValue properties can be out of sync when handling the EditValueChanged event; otherwise, false.

|

Remarks

The AllowAsyncSelection property affects item selection when changing the EditValue property, while handling the BaseEdit.EditValueChanged (RepositoryItem.EditValueChanged) event.

If the property is set to true , the RadioGroup.SelectedIndex and EditValue properties can be out of sync. Setting the EditValue property doesn’t update the RadioGroup.SelectedIndex property, and so, doesn’t change the current selection. In this mode, radio group items are allowed to have matching values (RadioGroupItem.Value).

If the property is set to false , the RadioGroup.SelectedIndex and EditValue properties are in sync. Setting the EditValue property updates the RadioGroup.SelectedIndex property, and changes the current selection. In this mode, all radio group items must have unique values (RadioGroupItem.Value). Otherwise, an incorrect item may be selected when changing the EditValue property.

See Also

Value

SelectedIndex

RepositoryItemRadioGroup Class

RepositoryItemRadioGroup Members

DevExpress.XtraEditors.Repository Namespace