[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
  Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Expand]MVVM Framework
 [Collapse]Controls and Libraries
   Reporting
  [Expand]Data Grid
  [Expand]Ribbon, Bars and Menu
  [Expand]Charts Suite
  [Expand]Pivot Grid
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Tree List
  [Expand]Gauge Controls
  [Expand]Map Control
  [Expand]Layout Management
  [Expand]Windows Modern UI
  [Expand]Printing-Exporting
  [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
   [Collapse]Examples
     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]Diagram Control
  [Expand]Windows and Utility Controls
   Dialogs, Notifications and Panels
  [Expand]Scheduler (legacy)
 [Expand]Scaffolding Wizard
 [Expand]Localization
  Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

How to: Process New Values in LookUpEdit

Show Me

A complete sample project is available in the DevExpress Code Examples database at http://www.devexpress.com/example=E2646.

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:

Getting Started with DevExpress MVVM Framework. Commands and View Models.

DevExpress MVVM Framework. Introduction to Services, DXMessageBoxService and DialogService.

DevExpress MVVM Framework. Interaction of ViewModels. IDocumentManagerService.

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