This example illustrates the specifics of using Criteria Property Editors in an XAF application. The complete description is available in the How to: Use Criteria Property Editors help topic.
Note: In this example, the SessionMixingException may occur if you refresh a list view filtered by criteria with object references. Several workarounds for this issue are provided in the E932 - object belongs to a different session after refresh filter with Business Entity ticket. The issue will be eliminated once the CollectionSourceBase - Refresh objects referenced by the applied criteria when the Object Space is reloaded suggestion is implemented.
See Also:
How to dynamic change the ObjectType Criteria Property Editors
Question Comments
Added By: Marco Castro at: 6/25/2014 5:24:38 AM
Hello,
The idea is great but the most usefull fielter don't work. This filter, as example, can be created but when executed don't work because a popup window that should appear so the user can fill the desired name is not poped up.
Contains([FirstName], ?)
Thanks,
Marco Castro
I am afraid there is no option to display a popup dialog from the SingleChoiceAction's Execute event handler. This scenario will probably be supported once the following suggestion is implemented Actions - Provide the capability to easily manage placement of Actions (file menu, toolbar, grid or context (popup) menu) without customizing the template.
Added By: Douglas Zuniga at: 7/5/2017 9:06:57 AM Hi Guys!
How can I add more custom functions for Date properties using xaf? Added By: Michael (DevExpress Support) at: 7/6/2017 12:41:33 AM
Hello Douglas,
I've found that you already submitted a ticket with this question - T532838 - How to add more custom functions to PopupCriteriaPropertyEditor. We will answer you there.
In example user enter own filter or criteria on listView and if want save this filter for later use press a button "Store criteria" and this is added to FilteringCriterion table ? Added By: Michael (DevExpress Support) at: 2/6/2018 7:34:32 AM
@Sławomir: I've created a separate ticket on your behalf (T603628: Based on E932, how to save the current grid filter as a new FilteringCriterion object). It has been placed in our processing queue and will be answered shortly.