Fromv2011 vol 1tov2012 vol 1
Starting with v2011 vol 1 wildcards ("%", "_", "*", "?") are no longer supported in the auto-filter row. We have migrated to new filter criteria such as StartsWith, EndsWith, and Contains. See the Breaking Changes in v2011 vol 1.4 list for a more detailed description. Still, some users may want to utilize an old-style approach and input wildcard characters in the auto-filter row. ASPxGridView allows you to do this by handing its ProcessColumnAutoFilter event. Within its handler you can check the filter input string for "*" and "?" characters, and compose a new filter criterion using criteria operators supported by our data library. This sample illustrates a simplifies approach for string fields.
From v2012 vol2 and later
Starting with v2012 vol 2 we have returned support for using wildcards in the grid's Auto Filter Row. The new LIKE operator, which supports wildcards, has been added to the AutoFilterCondition enumeration as a separate operator. The availability of this menu item is optional; by default the item is not displayed. The item's availability is controlled by the following properties:
- The grid's Settings.ShowFilterRowMenuLikeItem property;
- A grid column's Settings.ShowFilterRowMenuLikeItem property.
Note that now we provide support only for wildcards that are specific to our binary LIKE operator - (these are the '%' and '_' wildcard symbols), see Criteria Language Syntax to learn more.
Question Comments
Added By: Donn Edwards at: 5/24/2012 11:45:33 AM
If this is such a great solution then why isn't it incorporated directly into the ASPxGridView code?
Added By: Mikunda Petr at: 10/10/2016 4:42:38 AM Hi guys. This example is obsolete. Is there any updated example for current version?Added By: Lex (DevExpress Support) at: 10/10/2016 5:58:05 AMHello,
I've created a separate ticket on your behalf (T437396: ASPxGridView - How to implement wild-card filtering in the Auto Filter Row after the version 12.2). It has been placed in our processing queue and will be answered shortly.