PDA

View Full Version : Ext.ComponentLoader loadMask not working



praveen_pkc
24 Apr 2012, 3:29 AM
Using sencha 4.0.7.

loader : {
url : detailsURL,
scripts : true,
autoLoad : true,
loadMask : true,
params : {
mode : 0,
diskGroupName : ""
}
}

Using this inside a Ext.window.Window..
even when loadMask is set to true , its NOT showing the default loading icon ?
Is there something I missed ?

scottmartin
24 Apr 2012, 8:19 PM
Please see if 4.1 corrects this problem:
http://www.sencha.com/blog/ext-js-4-1-final-released/

Regards,
Scott.

arpit_jain
8 Feb 2013, 12:59 AM
Is this fixed?
It's not working on my setup with Ext JS 4.1.

arpit_jain
8 Feb 2013, 3:21 AM
figured out the problem

Problem:
- 'autoLoad' for loader is set to true.
- so during the initialization of window, loader is also initialized and it tries to set load mask for window.
- but since window is not rendered yet, load mask cannot be shown.

Solution:
- set autoLoad: false for loader
- after calling window.show(), call window.getLoader().load()

Worked perfectly for me.