View Full Version : Reconfigure infinite grid?

23 Jan 2014, 10:03 AM
I'd like to change the columns of an infinite grid.

Is it possible to reconfigure (or otherwise reuse) an infinite grid panel when columns change w/o destroying it?

I checked the code and I'm note sure if the page map is cleared on store reconfigure, but I can always clear it myself.

23 Jan 2014, 1:38 PM
Have you tried gridInstance.reconfigure()?

3 Feb 2014, 11:29 AM
I wanted to report a problem with the panel.reconfigure (http://docs-origin.sencha.com/extjs/4.2.2/#!/api/Ext.grid.Panel-method-reconfigure) method when used on an infinite grid.

I have a buffered store. Problem is the autoDestroy config. If I set it to true, I get an error in LoadMask, see the screen shot.

There's an easy work around: comment out autoDestroy: true and override the beforeDestroy method in the grid panel.

I don't see that this is fixed in the nightly code, so perhaps someone would like to take a look at at it.

Ext.define('MyStore', {
extend: 'Ext.data.Store',
autoLoad: true,
// autoDestroy: true,
buffered: true,
pageSize: 100,


Ext.define('MyPanel', {
extend: 'Ext.grid.Panel',
// store: autoDestroy config results in an error in 4.2.2
beforeDestroy: function () {
var store = this.store;
if (store) {