[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Collapse]WPF Controls
 [Expand]What's Installed
 [Expand].NET Core 3 Support
 [Expand]Common Concepts
 [Expand]MVVM Framework
 [Collapse]Controls and Libraries
  [Expand]Data Grid
  [Expand]Ribbon, Bars and Menu
  [Expand]Charts Suite
  [Expand]Pivot Grid
  [Expand]Rich Text Editor
  [Expand]Tree List
  [Expand]Gauge Controls
  [Expand]Map Control
  [Expand]Layout Management
  [Expand]Windows Modern UI
  [Collapse]Data Editors
    Included Components
   [Expand]Implementation Details
   [Expand]Getting Started
   [Expand]Editor Types
   [Expand]Common Features
   [Expand]Range Control
   [Expand]Visual Elements
   [Expand]End-User Capabilities
     How to: Create a Checked ComboBox
     How to: Create an Image ComboBox
     How to: Create a ButtonEdit with a Custom Button
     How to: Create Edit Buttons with Custom Glyphs in Code
     How to: Create ProgressBarEdit and MarqueeProgressBarEdit Controls
     How to: Create ListBoxEdit, CheckedListBoxEdit and RadioListBoxEdit
     How to: Bind Editors to Data
     How to: Implement a Custom Validation Procedure
     How to: Customize the Appearance of a Standalone Editor
     How to: Customize the Appearance of an In-place Editor
     How to: Apply Style Settings to the ComboBoxEdit
     How to: Customize the Appearance of the Editor's Error Tooltip
     How to: Customize the Appearance of the Editor's Items Panel
     How to: Customize the Appearance of the Editor's Borders
     How to: Customize the Image Editor's Menu
     How to: Customize ComboBox and Lookup Editors
     How to: Locate Information within ListBoxEdit using the Search Control
     How to: Format Display Values via Standard Format Specifiers
     How to: Format Display Values via Composite Formatting
     How to: Process New Values in LookUpEdit
     How to: Create a SparklineEdit Control
  [Expand]Navigation Controls
  [Expand]Spell Checker
  [Expand]Property Grid
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Gantt Control
  [Expand]Diagram Control
  [Expand]Windows and Utility Controls
   Dialogs, Notifications and Panels
  [Expand]Scheduler (legacy)
 [Expand]Scaffolding Wizard
  Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

How to: Process New Values in LookUpEdit

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:

Is this topic helpful?​​​​​​​