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

How to Filter Lookup List Views

$
0
0

This example demonstrates how to display a collection of a particular reference property in a drop-down window of the Lookup Property Editor that displays another reference property. For details, refer to the How to: Filter Lookup List Views topic in XAF documentation.

Example Comments

Added By: Andrew Bingham 2 at: 3/3/2014 1:51:14 PM    

I have a concern about the UIX. 2 scenarios:

A. Code as given. When the Product is changed - the Accessory selected for the previous Product is still displayed in the View , until the user Tabs off the Product

B The Product property is decorated with the [ImmediatePostData] attribute. When the Product is changed - the Accessory is cleared in the View.

I can see valid arguments for both of these - I favour B on the principle that "the UI should never tell lies"

Thoughts ?

Added By: Konstantin B (DevExpress) at: 3/3/2014 11:57:01 PM    

Andrew, it is up to you whether or not the ImmediatePostData attribute should be applied in your scenario. It may be important to provide a responsive UI and update dependant property values immediately. In other cases, the scenario may be to update dependent values only after commit. These values may be located on another Detail View tab, or you may want to avoid postbacks when changing focus to improve performance.


Viewing all articles
Browse latest Browse all 7205

Trending Articles



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