Last active
August 29, 2015 14:03
-
-
Save ken-muturi/066b3f4b4623d9aaec3b to your computer and use it in GitHub Desktop.
Sencha Grid Manual Filter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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