Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

LookUpEdit - Processing New Values

$
0
0

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.

Question Comments

Added By: Sorin Sandu at: 7/10/2012 8:47:32 AM    

Hi
Is it possible to close the popup before showing the dialog ?

Added By: Raumnz at: 9/25/2013 10:29:32 AM    

hi
once entered the new value on the product name, I tab . should the lost focus open the new tab?

thanks.
PD. I have to click outside the control for the pop up to show.

Added By: Matthias Adloff at: 11/14/2014 2:05:51 PM    

Would you mind to translate this example to POCO?


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>