Back to Devexpress

FilterController.SetFilterAction Property

expressappframework-devexpress-dot-expressapp-dot-systemmodule-dot-filtercontroller-7f092e92.md

latest4.2 KB
Original Source

FilterController.SetFilterAction Property

Provides access to the ModificationsController‘s SetFilter Action.

Namespace : DevExpress.ExpressApp.SystemModule

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
public SingleChoiceAction SetFilterAction { get; }
vb
Public ReadOnly Property SetFilterAction As SingleChoiceAction

Property Value

TypeDescription
SingleChoiceAction

A SingleChoiceAction object representing the Filter Action.

|

Remarks

The SetFilter Action is intended to apply one of the predefined filters to the current List View:

In a Windows Forms application:

The predefined filters represent the elements of the Filter Action’s Items collection (see ChoiceActionBase.Items). This collection’s elements are generated using information from the Application Model‘s Views | <ListView> | Filters node.

To add filters to this node, use the Model Editor, or do it in code. For details, refer to the following topics:

The SetFilter Action is active when the FilterController is active. To ascertain why the SetFilter Action is currently deactivated or disabled, use the DiagnosticInfo Action. If you need to change the Action’s “active” or “enabled” state in code, use its ActionBase.Active or ActionBase.Enabled property, respectively. To change the “visible” or “enabled” state of the Filter Action’s items, use their ChoiceActionItem.Active and ChoiceActionItem.Enabled properties, respectively.

Information on the SetFilter Action is available in the Application Model‘s ActionDesign node. To access it, use the Model Editor.

See Also

Change List View Filters

Filters Application Model Node

ListViewFilter Attribute

FilterController Class

FilterController Members

DevExpress.ExpressApp.SystemModule Namespace