Skip to content

Instantly share code, notes, and snippets.

@ken-muturi
Last active August 29, 2015 14:03
Show Gist options
  • Save ken-muturi/066b3f4b4623d9aaec3b to your computer and use it in GitHub Desktop.
Save ken-muturi/066b3f4b4623d9aaec3b to your computer and use it in GitHub Desktop.
Sencha Grid Manual Filter
//default filter params
var filters = {
ftype: 'filters',
autoReload: false,
local : false,
encode: false, // json encode the filter query
};
// docked elements
'-',
{
text: 'Apply Filters',
tooltip: 'Apply Filters',
enableToggle: true,
handler: function (button, state) {
var store = grid.view.getStore();
// bind the store again so GridFilters is listening to appropriate store event
grid.filters.bindStore(store);
store.load();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment