GridViewSettings.ProcessColumnAutoFilter Property
Enables you to apply custom filter criteria.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.2.dll
Declaration
Property Value
Type | Description |
---|---|
ASPxGridViewAutoFilterEventHandler | An ASPxGridViewAutoFilterEventHandler delegate method allowing you to implement custom processing. |
Remarks
End-users can build simple filter criteria and apply them using the Filter Row. The ProcessColumnAutoFilter event is raised before the filter criterion is applied. This event is raised twice and enables you to:
- provide custom filter criteria;
- specify text displayed within the auto-filter row cell.
If the event parameter’s GridAutoFilterEventArgs.Kind property returns GridViewAutoFilterEventKind.CreateCriteria, you should provide custom filter criteria using the GridAutoFilterEventArgs.Criteria property.
Note
When handling the ProcessColumnAutoFilter event, you should apply filter criteria only to the column that is to be filtered.
When the GridAutoFilterEventArgs.Kind property returns GridViewAutoFilterEventKind.ExtractDisplayText, you should specify the text displayed within the auto-filter row cell. To do this, use the GridAutoFilterEventArgs.Value property.