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.v24.1.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
[DefaultValue(true)]
[DXCategory("Behavior")]
public bool AllowAsyncSelection { get; set; }
Property Value
Type | Default | Description |
---|---|---|
Boolean | true | 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.