Hi,
I have a grid that is already rendered, and I try to add to it a filter (Ext.ux.grid.FiltersFeature) dynamically.
This is the way I follow:
Code:
// Create filter property
var filtersCfg = {
ftype: 'filters',
autoReload: true,
encode: true,
local: false,
filters: [{type: 'numeric',
dataIndex: 'Stock'
}]
}
// Apply config on the fly
Ext.apply(grid, { features: filtersCfg });
That's not seem to change anything on the grid (the filter menu on the stock column is still not visible).
Although in Chrome console the 'features' property on the grid is filled with the filter config and has the stock filter in the 'filters' array...
Do I need to refresh something ? Or what is the right way to simply add a new column filter on the fly ?
Thanks.