@ ByteLess
I'm adding the feature as described above, so copy the above code and paste it into the search field of the config panel and push the button Add. This works when you'll add just one feature to your grid.
PHP Code:
features: {
ftype: 'filters',
autoReload: false,
local: true,
updateBuffer: 1000,
filters: [
{
type: 'numeric',
dataIndex: 'No'
},
{
type: 'string',
dataIndex: 'Name'
},
{
type: 'string',
dataIndex: 'Post_Code'
},
{
type: 'string',
dataIndex: 'City'
},
{
type: 'string',
dataIndex: 'Country_Region_Code'
},
{
type: 'string',
dataIndex: 'Language_Code'
},
{
type: 'list',
dataIndex: 'Blocked',
options: [
'Ship',
'Invoice',
'All'
],
phpMode: true
},
{
type: 'boolean',
dataIndex: 'Checked'
},
{
type: 'date',
dataIndex: 'Cheched_at_date'
},
{
type: 'date',
dataIndex: 'Next_check_at'
}
]
}
If you need to add more features to your grid, then you have to do it in an override:
PHP Code:
Ext.define('Nav.view.override.Blacklist', {
requires: 'Nav.view.Blacklist'
}, function() {
Ext.override(Nav.view.Blacklist, {
features: [
{ftype: 'summary'},
Ext.create('Ext.ux.grid.FiltersFeature',{
buffer:1000,
filters:[
{"type":"string","dataIndex":"Name"},
{"type":"string","dataIndex":"Address"},
{"type":"string","dataIndex":"Post_Code"},
{"type":"string","dataIndex":"City"},
{"type":"string","dataIndex":"Contact"},
{"type":"string","dataIndex":"E_Mail"},
{"type":"numeric","dataIndex":"Balance"},
{"type":"numeric","dataIndex":"Balance_Due"},
{"type":"numeric","dataIndex":"Reminder_Amounts"},
{"type":"numeric","dataIndex":"No_of_Issued_Reminder"}]
})
]
});
});