The current LookUpEdit version does not allow using Server Mode datasources. This example demonstrates how to create a custom editor that allows using them.
Question Comments
Added By: Andrew Thornton at: 7/19/2013 10:32:51 AM
Hi,
Just upgraded to 13.1.5, and this no longer compiles. Quite a few undocumented things looked to have changed.
Can we have a 13.4/5 version that works please?
Thanks.
Added By: Justin Zeng at: 4/17/2014 4:32:51 AMIt seems many problem, can this function to be support in new version ?
Added By: Ivan (DevExpress Support) at: 4/27/2014 10:42:28 PMHi Justin,
We cannot guarantee that this functionality will be available in the latest version. For now, you can try to extend this example manually. If you face difficulties doing this, do not hesitate to contact us.
Added By: Viktor Faerman at: 5/9/2014 1:57:04 AMHi Alex,
how to implement this custom editor with MVVM?
Thanks, Viktor
I have created a separate thread for your questions: How to implement a custom editor from the E4560 example with MVVM. Please refer to it for future discussion.
Thanks,
Michael
Added By: David Lemieux at: 8/12/2015 10:09:43 AM
This probably does the trick for standalone lookup editors, but I have doubts about using this inside a grid. If my understanding of both the code below and the grid's mechanics is correct, a query will be issued for each and every cell for which such an editor is present. Therefore, if you have 20 records on screen with five columns each having such an editor, that's a hundred of connections opening, querying and closing right there. And EVEN with just ONE column, it will still be under-performing when it will be sorted, grouped or filtered. Even for the non-virtualized rows.
This needs a proper solution. Urgently.
Added By: Ivan (DevExpress Support) at: 8/13/2015 3:01:37 AMDavid, you are correct. The editor we implemented in this example is not designed to be used inside GridControl. With the current implementation, a new source/context will be created for each visible grid cell. Please refer to my comment in the LookUpEdit - server mode support ticket, where I clarified our plans regarding this feature.
Added By: Alexei Corduneanu 2 at: 9/4/2015 7:27:11 AMI'm trying to use this approach together with WcfInstantFeedbackDataSource.
As SelectedItem I'm setting the Item I've saved in the database previously. And I'm having a problem with loading the LookUpEdit value back because I'm getting "Value cannot be converted" error. I guess it's happens because the Item is not present in the datasource.
What should be a correct way to load the value back to this control?
Hello,
To process your recent post more efficiently, I created a separate ticket on your behalf: T286248: How to modify E4560 so it properly works with a WcfInstantFeedbackDataSource. This ticket is currently in our processing queue. Our team will address it as soon as we have any updates.