aspnet-devexpress-dot-web-dot-aspxgridbase-8ab5cf30.md
Enables you to dynamically hide operation items (such as the Equals, Contains, etc.) of the filter control’s operation dropdown menu.
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
public event FilterControlOperationVisibilityEventHandler FilterControlOperationVisibility
Public Event FilterControlOperationVisibility As FilterControlOperationVisibilityEventHandler
The FilterControlOperationVisibility event's data class is FilterControlOperationVisibilityEventArgs. The following properties provide information specific to this event:
| Property | Description |
|---|---|
| CustomFunctionName | Gets a custom filter function name. |
| FunctionType | Gets a function-based comparison operator type. |
| Operation | Gets the comparison operator type. |
| PropertyInfo | Gets the filterable property of the filter expression. |
| Visible | Gets or sets a value specifying whether the filter operation is visible. |
The FilterControlOperationVisibility event is raised for each comparison operator, and allows you to dynamically control its visibility.
The event parameter’s FilterControlOperationVisibilityEventArgs.PropertyInfo and the FilterControlOperationVisibilityEventArgs.Operation properties identify the filterable property (the column being filtered) and its operations. To specify the operator’s visibility, use the FilterControlOperationVisibilityEventArgs.Visible property.
See Also
Online Demo: Grid - Filter Control
Online Demo: Card View - Filter Control