Results 1 to 2 of 2

Thread: loadmask issue

  1. #1
    Sencha User
    Join Date
    May 2012
    Location
    Bangalore
    Posts
    95
    Vote Rating
    1
      0  

    Default loadmask issue

    I want apply load-mask in view page. while launching the application, some view pages are taking time to load data later it will display, so if its taking time to load in that time i want show load-mask to users with some messages like "loading....". from some sample i have applied load-mask, but it is shows that message every time whenever i hit that page. this is bad way because here setting time. i need apply load-mask like this if don't have data it should show the load-mask to the user, until page getting the data. please any one help me. how to achieve this one
    My code is here: at controller level i am taking the id of load-mask and setting the property as shown below code

    Code:
    onCompanyPageLoad: function () {
        var loader = Ext.getCmp('mask');        
        loader.setMessage("Loading...");
        loader.setIndicator(true);
        loader.setTransparent(false);      
        loader.show();        
        setTimeout(function () {            
            loader.hide();
        }, 1000);
    }

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Vote Rating
    1272
      0  

    Default

    You can show a loading LoadMask via:

    Code:
    comp.setMasked(true);
    or passing a config object for LoadMask
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •