Skip to content
Snippets Groups Projects
Commit ec173d5c authored by Renaud Le Gac's avatar Renaud Le Gac
Browse files

Handle the paging.

parent 3d4b759a
No related branches found
No related tags found
No related merge requests found
...@@ -12,8 +12,9 @@ App.grid.GridFilter = Ext.extend(Object, { ...@@ -12,8 +12,9 @@ App.grid.GridFilter = Ext.extend(Object, {
/** /**
* Private * Private
* a reference to the grid store * a reference to the grid and to its store
*/ */
grid: null,
store: null, store: null,
/** /**
...@@ -34,7 +35,8 @@ App.grid.GridFilter = Ext.extend(Object, { ...@@ -34,7 +35,8 @@ App.grid.GridFilter = Ext.extend(Object, {
*/ */
init: function(grid){ init: function(grid){
// link the grid store // link the grid and its store
this.grid = grid;
this.store = grid.getStore(); this.store = grid.getStore();
// Keep track of the initial filter conditions // Keep track of the initial filter conditions
...@@ -102,7 +104,15 @@ App.grid.GridFilter = Ext.extend(Object, { ...@@ -102,7 +104,15 @@ App.grid.GridFilter = Ext.extend(Object, {
// update the store // update the store
this.store.baseParams.where = conditions; this.store.baseParams.where = conditions;
this.store.load();
// update the store dealing with paging
if (this.grid.pagingInitialized) {
var bbar = this.grid.getBottomToolbar();
bbar.doRefresh();
} else {
this.store.load();
}
} }
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment