[CLOSED] Problem with mask on store load.

  1. #1

    [CLOSED] Problem with mask on store load.

    Hello

    me again :)

    I have to reload chars data depending on choice made by user, all works well except that I have not the "loading" window mask that appear during store load. So my question, how can I show this wait window during store load? I try differrent ting since this morning, but found nothing yet.
    Last edited by Daniil; Jun 07, 2012 at 9:25 AM. Reason: [CLOSED]
  2. #2
    Hi,

    I would call
    App.Chart1.el.mask("x-mask-loading");
    within a Store BeforeLoad listener
    and
    App.Chart1.el.unmask();
    within a Store Load listener.
  3. #3
    Quote Originally Posted by Daniil View Post
    Hi,

    I would call
    App.Chart1.el.mask("x-mask-loading");
    within a Store BeforeLoad listener
    and
    App.Chart1.el.unmask();
    within a Store Load listener.
    Ok, I will try that and report, but I think it will be a good idea Exept I have to implement on my x charts shown into the window. Could't I apply this solution to he containing window?

    And subsidiary question, is App.chart1 the same that Ext.GetCmp("Chart1Name")? In fact, what is tha App object?
  4. #4
    Quote Originally Posted by feanor91 View Post
    Could't I apply this solution to he containing window?
    I think yes, if you will use the Window element instead on the chart one.
    win.el.mask('x-mask-loading');
    Quote Originally Posted by feanor91 View Post
    And subsidiary question, is App.chart1 the same that Ext.GetCmp("Chart1Name")?
    Yes, they are two different approaches to refer Ext.NET widgets. I would prefer the first one:
    App.ChartConfigId
    in the performance aspect - no need to call any method.

    Quote Originally Posted by feanor91 View Post
    In fact, what is tha App object?
    It is the default ResourceManager Namespace. It is used to share all Ext.NET widgets in the following manner.
    window.ResourceManagerNamespace.WidgetConfigId
  5. #5
    Thanks a lot. Works great and easyly on the window.
  6. #6
    One more question:

    Is there a way to hide the window that have the focus, in an overway to know what window in a desktop has the focus?

    Or perhaps mor easy, masking all the page, I try to mask desktop, it works but only fr desktop, windows belonging to are not masked.
  7. #7
    Here is how you can get an active window.

    Example
    App.Desktop1.desktop.getActiveWindow();
  8. #8
    Quote Originally Posted by Daniil View Post
    Here is how you can get an active window.

    Example
    App.Desktop1.desktop.getActiveWindow();
    Oups...I'm too late, I've just find :
    Ext.WindowManager.getActive()

Similar Threads

  1. Load mask from code behind
    By maephisto in forum 1.x Help
    Replies: 11
    Last Post: Apr 13, 2011, 2:33 PM
  2. [CLOSED] Problem ComboBox with Listeners Load of Store
    By xeo4.it in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Jan 18, 2011, 3:38 PM
  3. Load Mask via JS?
    By Tbaseflug in forum 1.x Help
    Replies: 6
    Last Post: Feb 16, 2010, 12:34 PM
  4. load mask for body
    By [WP]joju in forum 1.x Help
    Replies: 7
    Last Post: Mar 16, 2009, 4:29 AM
  5. [CLOSED] GridPanel load mask
    By peterdiplaros in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Nov 14, 2008, 3:17 PM

Posting Permissions