FilterController Class
Represents a ViewController descendant that contains the FullTextSearch and SetFilter Actions.
Namespace: DevExpress.ExpressApp.SystemModule
Assembly: DevExpress.ExpressApp.v25.2.dll
NuGet Package: DevExpress.ExpressApp
Declaration
Remarks
The FilterController displays the FullTextSearch and SetFilter Actions.
- ASP.NET Core Blazor


- Windows Forms


For details on the FullTextSearch and SetFilter Actions, refer to the description of the FilterController.FullTextFilterAction and FilterController.SetFilterAction properties, that provide access to these Actions.
To customize the default behavior of the FullTextSearch and SetFilter Actions, you can inherit from this Controller, or subscribe to its events. In addition, you can access the Actions to modify their behavior.
This Controller does not have platform-specific descendants, and you can create your own descendants to change its behavior. When deriving from the FilterController, the following protected virtual methods are available, and can be overridden:
Method | When is it called? | Description |
|---|---|---|
| Invoked when the | Applies the criteria that is set for the current List View’s IModelListView.Criteria property in the Application Model. In addition, creates items for the SetFilter Action using the ListView | Filters node from the Application Model. Executes the SetFilter Action, setting the filter specified by the Filters node’s |
| First, it is invoked when the | Generates a CriteriaOperator from the passed criterion, and adds it to the |
| Invoked to generate a tooltip for the SetFilter Action. The tooltip is formed from the criteria applied to the current View’s collection source. |
|
| Invoked as a result of executing the SetFilter Action. | The SetFilter Action’s SingleChoiceAction.Execute event handler. Applies the selected filter passed as the |
| Invoked as a result of executing the FullTextSearch Action. | The FullTextSearch Action’s ParametrizedAction.Execute event handler. Using the |
| Invoked by the | Raises the FilterController.CustomBuildCriteria event. To implement a custom algorithm for building criteria in the |
| Invoked by the | Creates a |
| Invoked by the | Raises the FilterController.CustomGetFullTextSearchProperties event. To collect properties for a search in a custom way in the |
| Invoked when the current List View’s ListView.Model property is changed (see View.ModelChanged), to remove the filter specified by the | Removes the passed criterion from the |
| Invoked as a result of changing the environment. | Checks whether the active or enabled state of the SetFilter and FullTextSearch Actions should be changed after the environment has been changed. |
Public members are described individually in the documentation.
This Controller is activated for List Views only. To ascertain whether the Controller is active, use the Controller.Active property. If you need to know the reason for its deactivation or activation at runtime, use the DiagnosticInfo Action.
Information about the FilterController and its SetFilter and FullTextSearch Actions is available in the Application Model‘s ActionDesign node. To access it, use the Model Editor.