PDA

View Full Version : [2.0b1][SOLVED] Grid reconfigure loadMask remains visible



Ronaldo
22 Oct 2007, 12:38 PM
Hi all,

After updating from svn earlier this evening, I noticed that a grid which receives metaData and uses it's reconfigure method does not get rid of a loadMask.

Using FireBug, I noticed that the GridPanel's initEvents method creates a loadMask for another element than the reconfigure method:


// private
initEvents : function(){
Ext.grid.GridPanel.superclass.initEvents.call(this);
if(this.loadMask){ this.loadMask = new Ext.LoadMask(this.bwrap,
Ext.apply({store:this.store}, this.loadMask));
}
},
...
reconfigure : function(store, colModel){
if(this.loadMask){
this.loadMask.destroy(); // does destroy the object but mask remains visible
this.loadMask = new Ext.LoadMask(this.body,
Ext.apply({store:store}, this.initialConfig.loadMask));
}
this.view.bind(store, colModel);

Changing this.bwrap to this.body in the initEvents method solves the problem.
Cheers,
Ronaldo

jack.slocum
22 Oct 2007, 1:41 PM
Actually I think it should be the other way around (to bwrap in reconfigure).

Thanks!