This example demonstrates how to create a custom function that removes all diacritic symbols from the specified string value. Using the GridView.SubstituteFilter event, this function can be injected into the active grid filter.
The SubstituteFilter event was added in version 2015 vol 1. To accomplish this task in older version, create a custom grid and customize the mechanism of filtering data via the auto filter row. For this, the GridView.RaiseCustomRowFilter method can be overridden. In this method, the cell text and filter string should be normalized via the standard String.Normalize method and then the cell value is processed based on the comparison operator type returned via the OptionsColumnFilter.AutoFilterCondition property.
Question Comments
Added By: Martin Šváha at: 8/26/2016 2:33:32 AM Dear DevExpress support.
I have used SubstituteFilter event for accent insensitive GridView in GridLookupEdit.
There is a problem and I can't find solution for typing with accent insensitive.
Filtering is ok.
For example, I have cities like this:
Kosiny
Kosonohy
Košice
Košice - západ
When I filter Kosi, then control filters cities:
Kosiny
Košice
Košice - západ
This is ok, but I can´t type into filter row Kosic, only Kosin.
How can I allow to disable accent in typing into filter row?
Thanks for any idea
Martin
Added By: Stas (DevExpress Support) at: 8/26/2016 7:24:49 AM
Hello,
I've created a separate ticket on your behalf (How to disable accent in typing into a filter row in the E5021 example). It has been placed in our processing queue and will be answered shortly.