View Full Version : Combining Ext.ux.grid.GridFilters and Ext.ux.form.SearchField

25 Oct 2010, 1:21 AM
I've got a grid with filters and I want to add the possibility to search the filtered grid using a Ext.ux.form.SearchField (searching all fields).

So I extended the SearchField class and implemented the onTrigger2Click to filter the store by the search term.
The problem is that the filters added with the Ext.ux.grid.GridFilters plugin will be ignored.
Anyone got this Plugins working together?
(The store is a local Ext.ux.data.PagingStore)

Thanks eztam!

25 Oct 2010, 1:47 AM
You'll have to overwrite GridFilters.getRecordFilter so it returns a function that filters on both the filters set in GridFilters and the search string from your SearchField.

27 Oct 2010, 12:50 AM
Thats it...
In the onTrigger2Click I call the filters reload function to actualize the filtering.

Thank you very much!