View Full Version : [CLOSED] Default operator for FilterHeader fields

Aug 20, 2014, 5:58 AM

I am trying to use the FilterHeader plugin with a GridPanel. For some columns I am also using a combobox as a HeaderItem as my filter field. It seems the default operator for the filter fields is "+(starts with)". How do I set the default operator for each individual filter field?


My main concern is where I use combobox as my filter field. Upon further research, it seems that when the column DataIndex is a numeric type, the default operator is "=", and when it is a string type, the default operator is "+". Please correct me if I am wrong about this.

I found this thread:

I have tried to follow the sample provided by Vladimir in the thread above. I have used CustomConfig to override the ConfigItem "getValue" when my column dataIndex is of type "string" and successfully changed the operator to "=". But a new problem arises from doing this. The The override script function is being called on Page_Load, as well as every time I MouseOver or Focus on the filter field (tested using an alert statement in the script function). Why does this happen and how do I avoid ıt?

Please advise.

Aug 20, 2014, 12:02 PM
Hi @metci,

Do you not want to change the op by default as Vladimir suggests in the post #4 (http://forums.ext.net/showthread.php?27014-CLOSED-Grid-FilterHeader-default-type-search&p=119957&viewfull=1#post119957)?