PDA

View Full Version : reload filtered store when closing dialog



Dannesart
23 Nov 2011, 6:08 AM
When I filter my grid and then open a dialog and then close it, I want the filtered grid should update, so it still is filtered and not "Full" store.

my code in my dialog that looksup my store in the grid and load it when closing.

onCancelButtonClick: function() {
this.close();
var store = Ext.data.StoreManager.lookup('reloadStore');
store.load({
//params: ,
scope : this,
callback: function(records, operation, success) {
//the operation object contains all of the details of the load operation
}


});

// this.getStore().loadGridData();

},

the method Load, just clear the filter and reload the grid.
Is there any method that reload my filtered grid without clearing it?

Thanks!

mitchellsimoens
23 Nov 2011, 7:11 AM
In your callback, you will need to refilter the store

Dannesart
23 Nov 2011, 7:25 AM
is there any method?

I tried to insert filterOnLoad : true, in my store. but it doesnt work

mitchellsimoens
23 Nov 2011, 1:56 PM
Ok, but are your filters still present on the Store?

Dannesart
23 Nov 2011, 2:00 PM
No, the store reload without any filters