[CLOSED] Event Mask on Listener of Store

  1. #1

    [CLOSED] Event Mask on Listener of Store

    Hello guys,

    I have a trouble with the event mask with listener event of a store, I need to show a Event Mask Before to Load the store, because I show a lot of rows of data, I used the before load event, and I use this in handler of before load, but it doesnt works:

     
    <BeforeLoad Handler="Ext.net.Mask.show({  el: this.up('gpPreciario') });
                                                                   this.getStore().reload({
                                                                   callback: function () {
                                                                  Ext.net.Mask.hide();
                                                                     }
                                                                    });">
    </BeforeLoad>
    I tried with this another way like this, but it doesnt works


    Ext.net.Mask.show({
     msg: "loading"
    });
    store.load({
     callback: function () {
     Ext.net.Mask.hide();
     }
    });
    I need than when the data is loaded the mask disappear ... The other way is to hide the Event Mask in the Load event of the store but it doesnt works too, thanks
    Last edited by Daniil; Mar 24, 2015 at 10:26 AM. Reason: Please use [CODE] tags, [CLOSED]
  2. #2
    Hi @osef,

    Is there any JavaScript errors throwing?
  3. #3
    There is not errors, simply it doesnt works
  4. #4
    I think this throws a JavaScript error since a Store doesn't have the up method.
    this.up('gpPreciario')
    Please clarify what browser are you testing with and how are you inspecting JavaScript errors?
  5. #5
    Yes, I refresh de navigator and had errors, but now Im using use this

    
    Ext.net.Mask.show({
     msg: "loading"
    });
    store.load({
     callback: function () {
     Ext.net.Mask.hide();
     }
    });
    but it doesnt works
  6. #6
    Please provide a full runnable test case to reproduce.
  7. #7
    Yes, sure, for example here...

    look the loader is showing before to render the Grid when the button is

    https://examples3.ext.net/#/GridPane...vent_Creation/

    I want to it looks same, but in my case before to load the data of my store
    Last edited by osef; Mar 17, 2015 at 2:31 AM.
  8. #8
    Thank you, the requirement is quite clear.

    Please provide a test case with your non-working scenario using Ext.net.Mask.show(...).
    Last edited by Daniil; Mar 20, 2015 at 11:50 AM.

Similar Threads

  1. Replies: 0
    Last Post: Jul 23, 2013, 3:20 AM
  2. Replies: 18
    Last Post: Aug 18, 2010, 9:28 PM
  3. Replies: 10
    Last Post: Aug 18, 2010, 2:22 AM
  4. store load event listener
    By [WP]joju in forum 1.x Help
    Replies: 0
    Last Post: Jan 08, 2010, 9:26 AM
  5. [CLOSED] Store reload event listener
    By fquintero in forum 1.x Help
    Replies: 5
    Last Post: Nov 24, 2008, 10:47 AM

Tags for this Thread

Posting Permissions