Using Ext.ux.grid.FiltersFeature with Grouped Headers
Hi,
got a hint for anybody who wants to use the new? grouped headers (example) together with the filtersFeature (of course not using the filter on the group headers) on ExtJs 4.1 with ux from examples.
In the source ux.grid.FiltersFeature.js its quoted:
Quote:
// filters may be configured through the plugin,
// or in the column definition within the headers configuration
But with grouped headers for me applying the filters to the single columns config as mainly used in the grid filter example (example) did not work (the menus were not showing the filter option). So do not:
Code:
//columns
var columns = [{text: 'groupedHeader', columns: [{.., filter: {type: ..., ...}}, ...]],...},...];
//define filter
var filtersCfg = {
ftype: 'filters',
autoReload: false, //don't reload automatically
local: true //only filter locally
};
grid = Ext.create('Ext.grid.Panel', {
...,
columns: columns,
features: [filtersCfg]
});
Do instead configure through the plugin
Code:
//define filter
var filtersCfg = {
ftype: 'filters',
autoReload: false, //don't reload automatically
local: true, //only filter locally
// filters may be configured through the plugin,
// or in the column definition within the headers configuration
filters: [{type: ...., ....}, ...]
};
Then for me they are displayed correctly.
Cheers
Grouped headers - Filters
Hello,
When I used to use filter for grid, css class .ux-filtered-column used get append dynamically.
However, for grouped headers filters this class is not getting appended :( .
Below is the code for customization
.ux-filtered-column {
background-color:#E4EFFC;
background-image: url('../icons/fam/filter.png') !important;
background-repeat:no-repeat !important;
background-position:85% 20% !important;
color: green !important;
}
Am unable to customize the grouped header now....