Skip to content

DevExpress-Examples/wpf-lookupedit-process-new-values

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WPF LookUpEdit - Process New Values

This example allows users to add new items to the LookUpEdit and posts these items to the data source.

image

Implementation Details

  1. Use the LookUpEditBase.AddNewButtonPlacement property to display the Add New button.

  2. When a user clicks this button or enters a value that does not exist in the data source, the LookUpEdit raises the ProcessNewValue event.

  3. Create an EventToCommand behavior and execute the ShowProductForm command when the ProcessNewValue event is raised.

  4. In the ShowProductForm command, use the DialogService to invoke a new item dialog. This dialog contains the DataLayoutControl that allows users to specify the item's properties.

  5. Add the specified item to the data source if the user clicks the Add button.

    image

Files to Review

Documentation

More Examples

About

Allow users to add new items to the LookUpEdit and post these items to the data source

Topics

Resources

License

Stars

Watchers

Forks