This example displays a pop-up filter dialog that allows users to set a filter for a list view before the application starts to load list view data. Users can create filters and save them in a data source. This approach can be useful when the list view contains a large amount of data.
- Extend the Application Model with an additional property.
- Implement an interface that exposes the AdditionalCriteria property. This property stores the applied filter criteria.
- Override the ExtendModelInterfaces method of your base Module to extend the Application Model with the declared interface and the AdditionalCriteriaproperty.
 
- Create the ViewFilterObject class. Instances of this class store user filters.
- Create the non-persistent ViewFilterContainer class. An object of this class contains a list of user filters (ViewFilterObjectobjects) and the currently applied filter. TheViewFilterContainer's Detail View serves as the filter dialog.
- Implement ShowFilterDialogController to display the filter dialog. When a user selects a filter and clicks the OK button, the controller assigns the corresponding filter criteria to the AdditionalCriteriaApplication Model property.
- Implement NewViewFilterObjectController to initialize a new instance of the ViewFilterObjectclass when a user clicks New in theViewFilterObjectlookup List View.
- Module.cs
- ViewFilterObject.cs
- ViewFilterContainer.cs
- ShowFilterDialogController.cs
- NewViewFilterObjectController.cs
- Non-Persistent Objects
- Data Types of Business Class Properties and Built-in Property Editors
- How to: Extend and Access the Application Model Nodes from Controllers
- ShowNavigationItemController Class
- DialogController class
- Lookup List View.
(you will be redirected to DevExpress.com to submit your response)
