How to add mask for Store.sync()

  1. #1

    How to add mask for Store.sync()

    Hi guys,

    I just want to add mask for this example https://examples2.ext.net/#/GridPane...s/StoreEvents/

    Is there a way do it?
  2. #2
    Hi @devil,

    In SVN we added the following item to the list of breaking changes.

    151. The GridPanelBase's SaveMask property has been removed.

    To show a mask, set up the following Store's BeforeSync listener.

    Ext.net.Mask.show({
         el: App.GridPanel1.body,
         msg: "Saving"
    });
    To hide a mask, set up the following Store's Write and Exception listener.

    Ext.net.Mask.hide();
  3. #3
    Thanks @Daniil, I got it.

    Btw, I find another way to do it.

    #{Window1}.el.mask("Saving...");
    #{Store1}.sync({
        callback:function(){
            #{Window1}.el.unmask();
        }
    );
    In my scene, I can organize code in one place.

Similar Threads

  1. Store Sync() Method Big Issue
    By shaileshsakaria in forum 2.x Help
    Replies: 10
    Last Post: Jan 14, 2013, 8:00 AM
  2. [CLOSED] REST store sync callback
    By thesvr in forum 2.x Legacy Premium Help
    Replies: 7
    Last Post: Nov 08, 2012, 12:57 PM
  3. [CLOSED] Store Sync Date Problem
    By softmachine2011 in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Sep 27, 2012, 1:40 PM
  4. [CLOSED] Problem with mask on store load.
    By feanor91 in forum 2.x Legacy Premium Help
    Replies: 7
    Last Post: Jun 07, 2012, 2:37 PM
  5. [CLOSED] ComboBox didn't sync store's change
    By leon_tang in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Mar 12, 2012, 11:57 AM

Tags for this Thread

Posting Permissions