RepositoryItem.EditValueChangedFiringMode Property

Gets or sets the RepositoryItem.EditValueChanged event's firing mode.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v20.1.dll

Declaration

[DXCategory("Behavior")]
[DefaultValue(EditValueChangedFiringMode.Default)]
public virtual EditValueChangedFiringMode EditValueChangedFiringMode { get; set; }
<DXCategory("Behavior")>
<DefaultValue(EditValueChangedFiringMode.Default)>
Public Overridable Property EditValueChangedFiringMode As EditValueChangedFiringMode

Property Value

Type Default Description
EditValueChangedFiringMode

Default

An EditValueChangedFiringMode enumeration member which specifies when the editor's RepositoryItem.EditValueChanged event should occur.

Remarks

You can set the EditValueChangedFiringMode property to one of the following values:

Default

The RepositoryItem.EditValueChanged event fires immediately after the editor's value has been changed by an end-user. For the DateEdit, TimeEdit and TimeSpanEdit controls, the event fires after you move focus between date/time placeholders.

Buffered

The RepositoryItem.EditValueChanged event fires after an end-user has stopped editing (typing text) and a specified amount of time (RepositoryItem.EditValueChangedFiringDelay/RepositoryItem.EditValueChangedDelay) has passed.

NOTE

The EditValueChangedFiringMode property is ignored for lookup editors during an incremental search while their popup windows are open. If the editor's edit value changes during an incremental search, the RepositoryItem.EditValueChanged event fires immediately.

The code sample below illustrates how to deley the RepositoryItem.EditValueChanged event.


textEdit1.Properties.EditValueChangedFiringMode = EditValueChangedFiringMode.Buffered;
textEdit1.Properties.EditValueChangedDelay = 300;   // 300 msec delay
See Also