-
27 Sep 2012 7:16 AM #1
Answered: Give some time for loading .
Answered: Give some time for loading .
Hi all,
I am showing chart on the panel. For loading i am taking some value from the web service. So it take some time for loading . Approximately it can taking 10-15 sec to generate chart. I want to show the load mask for this 10-15 sec. So how i give this time span of 10 sec to continue the load mask.
-
Best Answer Posted by Schildi
Hi Shri_SenchaDev,
you should listen to an event which is fired, when the chart is rendered and then call. Therefore you have to set a listener on the chart. When you have a look at the docs, you should find the right one (not sure, but I could be something like afterrender or render, something like that.)Code:setMasked(false)
Best regards,
Schildi
-
29 Sep 2012 8:11 PM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,107
- Vote Rating
- 453
- Answers
- 3156
Have you tried using the mask method on the chart?
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
1 Oct 2012 2:45 AM #3
I tried this by using following code
But problem is that this can be done with in sec...i cant see an LoadMask. But chart on panel will show after 10-15 sec. And for this 10-15 sec i want to give some interval and show Loadmask there.Code:Ext.getCmp('MyPanel').setMasked({xtype:'loadmask',message:'Loading... Please wait.'}); Ext.ComponentQuery.query('MyPanel')[0].add(chart); Ext.getCmp('MyPanel').setMasked(false);
-
1 Oct 2012 3:15 AM #4
Hi Shri_SenchaDev,
you should listen to an event which is fired, when the chart is rendered and then call. Therefore you have to set a listener on the chart. When you have a look at the docs, you should find the right one (not sure, but I could be something like afterrender or render, something like that.)Code:setMasked(false)
Best regards,
Schildi


Reply With Quote