PDA

View Full Version : [CLOSED] Excessive grid refreshes



mankz
7 Apr 2014, 4:17 AM
Open locked grouping sample
Remove 'renderTo' config and add


grid.view.on('refresh', console.log, console)
grid.render(document.body)

Output is


e {initialConfig: Object, id: "gridview-1018", autoGenId: true, protoEl: null, initConfig: functionů}

[e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e]

Object {viewready: function, refresh: function, scope: e}
ext-all.js:19
e {initialConfig: Object, id: "gridview-1020", autoGenId: true, protoEl: null, initConfig: functionů}

[e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e]

Object {viewready: function, refresh: function, scope: e}
ext-all.js:19
e {initialConfig: Object, id: "gridview-1018", autoGenId: true, protoEl: null, initConfig: functionů}

[e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e]

Object {viewready: function, refresh: function, scope: e}
ext-all.js:19
e {initialConfig: Object, id: "gridview-1020", autoGenId: true, protoEl: null, initConfig: functionů}

[e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e]

Object {viewready: function, refresh: function, scope: e}
ext-all.js:19
e {initialConfig: Object, id: "gridview-1020", autoGenId: true, protoEl: null, initConfig: functionů}

[e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e]

Object {viewready: function, refresh: function, scope: e}
ext-all.js:19
e {initialConfig: Object, id: "gridview-1020", autoGenId: true, protoEl: null, initConfig: functionů}

[e, e, e, e, e, e, e, e, e, e, e, e, e, e, e, e]

Object {viewready: function, refresh: function, scope: e}


Locked view refreshed twice, normal view 4 times.

Compared to same sample in Ext 4.2.2: 1 refresh for locked, 3 for normal (should likely be considered a bug).

mitchellsimoens
8 Apr 2014, 6:41 AM
Thanks for the report! I have opened a bug in our bug tracker.