Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

BaseGallery.FilterMenuItemClick Event

Fires when a standard item of a gallery’s Group Filter menu is clicked.

Namespace: DevExpress.XtraBars.Ribbon.Gallery

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DXCategory("Action")]
public event GalleryFilterMenuItemClickEventHandler FilterMenuItemClick

#Event Data

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

Property Description
FilterMenu Gets the displayed menu.
Gallery Gets the current gallery.
Item Gets the item that has been checked.

#Remarks

The FilterMenuItemClick event is raised in response to a click on a standard item (bar item link) in a Group Filter menu. The group filtering feature is supported by galleries derived from the StandaloneGallery class. See the StandaloneGallery.AllowFilter topic, to learn about this feature.

The event’s parameters enable you to identify the context menu, the clicked link and bar item it corresponds to. Handle this event, to provide specific actions associated with the menu item.

The BaseGallery.FilterMenuPopup event can be handled to add custom items to the menu. Clicking these items doesn’t fire the FilterMenuItemClick event. To respond to clicking a custom item, handle the item’s BarItem.ItemClick event.

See Also