PDA

View Full Version : Grid Header Filters question



mrhomer
8 Jun 2012, 12:45 AM
I'am using Grid Header Filters in my grid. (http://www.sencha.com/forum/showthread.php?150918-Grid-Header-Filters)


Does anyone knows how can I take the filter value? With the getHeaderFilters() and getHeaderFilterField() all I get is a [ Object Object] not the current value ?

Any thoughts?

Jad
8 Jun 2012, 1:21 AM
Hello

getHeaderFilters return an array of Ext.util.Filter
so you can try

var filters = getHeaderFilters();
var filter = filters[0].value

mrhomer
8 Jun 2012, 1:34 AM
no luck I get this error Cannot read property 'value' of undefined

Jad
8 Jun 2012, 1:54 AM
var headerFilterPlugin = Ext.create('Ext.ux.grid.GridHeaderFilters');

...

var filters = headerFilterPlugin.getHeaderFilters();
var filter = filters[0].value