Skip to main content
.NET 6.0+

FilterController.CustomGetFilters Event

Occurs when the FilterController is activated. Allows you to specify the Application Model‘s Views | <ListView> | Filters node, containing the filter definitions to be used by the FilterController‘s SetFilter Action for the currently processed List View.

Namespace: DevExpress.ExpressApp.SystemModule

Assembly: DevExpress.ExpressApp.v24.1.dll

NuGet Package: DevExpress.ExpressApp

Declaration

public event EventHandler<CustomGetFiltersEventArgs> CustomGetFilters

Event Data

The CustomGetFilters event's data class is CustomGetFiltersEventArgs. The following properties provide information specific to this event:

Property Description
Filters Specifies the Application Model‘s Views | <ListView> | Filters node, containing the filter definitions to be used by the FilterController‘s SetFilter Action for the currently processed List View.

Remarks

The FilterController exposes the FilterAction described in the FilterController.SetFilterAction and Change List View Filters help topics. The CustomGetFiltersEventArgs.Filters parameter refers to an Application Model node. All changes of this node are persisted to the user’s Model Differences, so the CustomGetFilters event should not be used to modify this node. The event can be used only to conditionally switch the set of predefined filters by assigning the required Application Model’s Filters node to the Filters parameter. Note that the value of the currently selected filter’s Id property is saved to the specified node’s CurrentFilterID property.

See Also