1. #1
    Ext User
    Join Date
    Aug 2008
    Posts
    2
    Vote Rating
    0
    flashdrvnk is on a distinguished road

      0  

    Default Wait for mask() to load?

    Wait for mask() to load?


    Hello there,

    this is my first post, so I would like to thank you for your work on gxt! I've already recommended gxt to my company and other developers

    My goal is to use a mask to prevent user input while a time consuming operation is performed.

    Code:
      private class SelectAllDialogClickListener implements ClickListener {
    
        public void onClick (Widget sender) {
          mypanel.el().mask("Loading articles...");
          mypanel.disable();
    
          ListStore<BaseModel> store = mypanel.getStore();
          for (BaseModel model : store.getModels()) {
            model.set("checked", true);
            store.update(model);
          }
          
          mypanel.enable();
          mypanel.el().unmask();
        }
      }
    But when I click on the Button this Listener is added to, the store update blocks the whole application and the mask is not being rendered (that is my subjective view).

    The idea: this onclick method should change the Boolean "checked" on my BaseModel objects, which is rendered using a Checkbox column, this is very slow, so I want to display a mask and use the Disable event to disable all child elements.

    Is this not possible in Java, but only in JS?
    I would be really grateful for your help.

    Good day.
    Last edited by hendricd; 4 Aug 2008 at 5:43 AM. Reason: Moved to GXT Help Forum

  2. #2
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572
    Vote Rating
    3
    gslender is on a distinguished road

      0  

    Default


    put the entire store load section in a deferred command, which will execute after the last UI event etc... (so you'll need to the put the panel enable and unmask in there too)

  3. #3
    Sencha User
    Join Date
    Nov 2011
    Location
    China
    Posts
    14
    Vote Rating
    0
    shingocat is on a distinguished road

      0  

    Question more details about using mask() method

    more details about using mask() method


    could you demonstrate more details for using mask() method?
    because when I used mask() method, it was not working.
    for instance, a tabitem including a grid inside
    when I override onRender method.
    protected void onRender(Element parent, int index){
    this.el().mask();
    this.initGrid();// a method to initiate grid
    //after initiating the grid
    //unmask this tabitem
    this.el().unmask()
    }

    // but it could not be working.
    //so could you tell me more about these.
    //thanks

  4. #4
    Sencha User
    Join Date
    Aug 2012
    Location
    cong ty thiet ke website
    Posts
    1
    Vote Rating
    0
    seobts004 is on a distinguished road

      0  

    Default


    The content is great, it helped me understand the problem. Thanks.




Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi