PDA

View Full Version : How to disable 'Loading' mask on entire Tree Panel but keep one on the Node



whalethewise
27 Oct 2011, 11:14 AM
Hello

When I expand my Tree Node which is not loaded yet I see this rolling circle gif on the node but as well there is a loading mask on entire Tree panel. Is it possible to disable one on Panel and keep one on Node

Thanks

Vujita
27 Oct 2011, 2:26 PM
I believe load mask takes Ext.element or dom as a parameter for where to apply the mask. Try grabbing the nodes element.




var ele = node.getUI().getEl( );
var myMask =newExt.LoadMask(ele,{msg:"Please wait..."});

skirtle
27 Oct 2011, 9:04 PM
Have you tried:


viewConfig: {
loadMask: false
}

http://docs.sencha.com/ext-js/4-0/#!/api/Ext.tree.View-cfg-loadMask

whalethewise
28 Oct 2011, 6:44 AM
Thank you skirtle. It works. I did try it at very first before posting but it didn't work. After your post I tried it again and it started working. And I found I was overwriting viewConfig I put in class definition with the one I put in initComponent. :)


Have you tried:


viewConfig: {
loadMask: false
}

http://docs.sencha.com/ext-js/4-0/#!/api/Ext.tree.View-cfg-loadMask