mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-15 05:45:00 +00:00
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:
parent
64ece72558
commit
7a3691ac08
@ -2,9 +2,6 @@ Ext.define('PVE.grid.ResourceGrid', {
|
||||
extend: 'Ext.grid.GridPanel',
|
||||
alias: ['widget.pveResourceGrid'],
|
||||
|
||||
//fixme: this makes still problems with the scrollbar
|
||||
//features: [ {ftype: 'chunking'}],
|
||||
|
||||
title: gettext('Search'),
|
||||
|
||||
initComponent : function() {
|
||||
@ -137,7 +134,7 @@ Ext.define('PVE.grid.ResourceGrid', {
|
||||
|
||||
store.resumeEvents();
|
||||
|
||||
store.fireEvent('datachanged', store);
|
||||
store.fireEvent('refresh', store);
|
||||
|
||||
//console.log("END GRID UPDATE");
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user