1. #1
    Ext User
    Join Date
    Jul 2008
    Posts
    4
    Vote Rating
    0
    michaeljordan is on a distinguished road

      0  

    Default Masking

    Masking


    Does anyone know on how to apply a page mask during page loading once a submit button is clicked?

    I have 2 grids on the page and I want to apply page masking until loading of the two tables are completed.

    Thank you.

  2. #2
    Sencha - Community Support Team jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,337
    Vote Rating
    75
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    Ext.getBody().mask('Saving data...', 'x-mask-loading');

  3. #3
    Ext User
    Join Date
    Jul 2008
    Posts
    4
    Vote Rating
    0
    michaeljordan is on a distinguished road

      0  

    Default


    Thanks for your reply.

    What I mean is, if i put this code in the Submit Button handler:

    Ext.getBody().mask('Loading..');
    PopulateGrids();
    Ext.getBody().unmask();

    The loading message doesn't appear because extjs is asynchronous. It executes the unmask() statement even before the PopulateGrids() finished its execution.

    I hope someone can help me with this.

    Thanks again.

  4. #4
    Sencha - Community Support Team jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,337
    Vote Rating
    75
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    well, unmask after the stuff is loaded via event handlers or callbacks.

  5. #5
    Sencha - Community Support Team jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,337
    Vote Rating
    75
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    Look at the docs for the 'load' event of the datastore.

  6. #6
    Ext User
    Join Date
    Jul 2008
    Posts
    4
    Vote Rating
    0
    michaeljordan is on a distinguished road

      0  

    Default


    Thanks again for your reply.

    Yes, I have tried that. But as what I've mentioned before in post, I have two grids. Is there a way where I can check that BOTH grids have completed loading? After the've loaded successfully that's when I'll do the unmasking.

    I really appreciate your continous reply on this.

  7. #7
    Ext User
    Join Date
    Jul 2008
    Posts
    4
    Vote Rating
    0
    michaeljordan is on a distinguished road

      0  

    Default


    Thanks JGarcia! I'll just put the unmask on one of the datastore for now since both of them almost finished loading at the same time!

    I really appreciate your help!!

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar