use 'refresh' event to reload the grid after filtering the store

'datachanged' event was not reloading the store with ExtJS5,
but 'refresh' does.
According to the API description 'refresh' seems to be what we need:
http://docs.sencha.com/extjs/5.1/5.1.0-apidocs/#!/api/Ext.data.AbstractStore-event-refresh

also remove deprecated readme ( ExtJS6 do not have the 'chunking' Grid Feature, and no bugs
seen in scrolling yet)
This commit is contained in:
Emmanuel Kasper 2016-02-16 16:14:13 +01:00 committed by Dietmar Maurer
parent 64ece72558
commit 7a3691ac08

View File

@ -2,9 +2,6 @@ Ext.define('PVE.grid.ResourceGrid', {
extend: 'Ext.grid.GridPanel', extend: 'Ext.grid.GridPanel',
alias: ['widget.pveResourceGrid'], alias: ['widget.pveResourceGrid'],
//fixme: this makes still problems with the scrollbar
//features: [ {ftype: 'chunking'}],
title: gettext('Search'), title: gettext('Search'),
initComponent : function() { initComponent : function() {
@ -137,7 +134,7 @@ Ext.define('PVE.grid.ResourceGrid', {
store.resumeEvents(); store.resumeEvents();
store.fireEvent('datachanged', store); store.fireEvent('refresh', store);
//console.log("END GRID UPDATE"); //console.log("END GRID UPDATE");
}; };