View Full Version : [CLOSED] Filter Header Case Insensitve

Jan 15, 2015, 2:32 AM
Hi, I have a gridpanel with the next plugin:

<ext:FilterHeader runat="server" Remote="true" />

Waht can I do for having the filter working with case insensitive(this for string columns)?

By default the filters with this plugin work with the case sensitive option.

Thanks in advance.

Jan 15, 2015, 8:47 AM

In the FilterHeader example, the string comparison between the filter value and the column values takes place inside the Store_ReadData method.

So, one option is to convert the matchValue and itemValue to upper or lower case (Microsoft favors Upper) prior to comparison:

if (type == FilterType.String)
matchValue = ((string)value).ToUpper();
itemValue = (oValue as string).ToUpper();

Jan 16, 2015, 9:18 AM
Thanks, it worked.