ProcessNewValueEventArgs.PostponedValidation Property

Gets or sets whether to postpone edit value validation.

Namespace: DevExpress.Xpf.Editors

Assembly: DevExpress.Xpf.Core.v20.1.dll


public bool PostponedValidation { get; set; }
Public Property PostponedValidation As Boolean

Property Value

Type Description

true to postpone edit value validation; otherwise, false.


When an end-user presses the Enter key or moves focus to another control, and the editor cannot find an item that matches the text entered by an end-user within the edit box (ProcessNewValueEventArgs.DisplayText), the LookUpEditBase.ProcessNewValue event occurs. Handle this event, to manually validate a new value, and if required, add the corresponding record to a data source.

If you want to show a floating container, allowing an end-user to specify other values for a new record, set the event parameter's PostponedValidation property to true. In this case, a new value will be validated after a floating container is closed.


This example shows how to manually initialize a new value and add it to a data source.

Update: Starting with version 13.1 of DevExpress controls, you can use the DevExpress MVVM Framework to accomplish this task. It is necessary to create a command in the view model (for instance, the ShowProductFormCommand command) and bind it with the LookUpEditBase.ProcessNewValue event via the trigger. This would allow you to display the dialog (UserControl1.xaml file) for editing new source items in the LookUpEdit control when this even is raised. Then, you can implement custom logic in the OnShowProductFormCommandExecute (ProductList.cs file) method to process values in this dialog. Please review our blogs to find additional information about DevExpress MVVM Framework:

<Application x:Class="HowToCreateLookUpEdit.App"
        <viewmodel:StringToIntConverter x:Key="converter" />
See Also