Back to Devexpress

StandaloneGallery.AllowFilter Property

windowsforms-devexpress-dot-xtrabars-dot-ribbon-dot-gallery-dot-standalonegallery.md

latest2.7 KB
Original Source

StandaloneGallery.AllowFilter Property

Gets or sets whether the group filtering feature is enabled.

Namespace : DevExpress.XtraBars.Ribbon.Gallery

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(true)]
[DXCategory("Behavior")]
public virtual bool AllowFilter { get; set; }
vb
<DXCategory("Behavior")>
<DefaultValue(True)>
Public Overridable Property AllowFilter As Boolean

Property Value

TypeDefaultDescription
Booleantrue

true if the group filtering feature is enabled; otherwise, false.

|

Remarks

If the AllowFilter property is set to true , the gallery group filtering feature is enabled. In this mode, when a gallery contains two or more groups, the Group Filter panel is displayed at the top of the gallery. When this panel is clicked, a Group Filter menu is opened, which by default, contains check boxes that correspond to the existing gallery groups. These checkboxes control the visibility of the groups. Unchecking a check box hides a corresponding group; checking the check box makes the group visible:

The caption of the Group Filter panel is specified by the StandaloneGallery.FilterCaption property.

To add additional commands to the Group Filter menu, handle the BaseGallery.FilterMenuPopup events.

See Also

FilterCaption

MenuOpened

FilterMenuItemClick

FilterMenuPopup

StandaloneGallery Class

StandaloneGallery Members

DevExpress.XtraBars.Ribbon.Gallery Namespace