View Full Version : Chart LoadMask problem

5 Dec 2010, 12:47 AM
I am trying to show a loadmask while the chart's datastore is loading but for some reason, it's not showing anything and i am not having any errors in firebug...

dataStore.addListener("beforeload", function (store, options){
var myMask = new Ext.LoadMask(chart.getEl(), {msg: 'Please wait...'});
);The following code shows the message box so chart.getEl() is defined and an object of type "Ext.Element". However the chart is just empty and there is no loadmask being shown, after a few second; the chart is loaded without any problems but i am not seeing my loadmask at all...

Are there any solutions? or another way of showing a loadmask for a chart?


5 Dec 2010, 1:07 AM
It's a Flash object. You can't add child <DIV>s to it which is what masking does.

You will have to do something clever if you really want this.

Like create an Ext.Layer which you size and position absolutely over the chart's Element.

5 Dec 2010, 12:03 PM
I was adding the chart into a panel anyways, so after your reply; I set the loadmask to the parent panel's body instead of the chart and it's working fine.