Results 1 to 2 of 2

Thread: How to show waiting message

  1. #1

    Default How to show waiting message

    I have a Grid and I am using ajax to call a method to get the data I want to show in that Grid.
    Sometimes it takes several seconds to retreive the information and to render it in the Grid.

    I am using the next code:

    Code:
    var myMask = new Ext.LoadMask(Ext.getCmp("mainLayout"), { msg: "Retrieving data..." });
        myMask.show();
    
    
        setTimeout(function () {
            BindReport(function () {
                myMask.hide();
            });
        }, 500);
    This is showing the message but I have to specify the time the message is displayed, sometimes the message hides before the information is loaded and it seems nothing is happening.

    I would like to show a waiting message while the information is being loaded and rendered, what is the best way to accomplish this?

    Regards.

  2. #2
    Sencha User vick_44's Avatar
    Join Date
    Jul 2016
    Posts
    64
    Answers
    6

    Default

    You could just use below one, this will not disappear until the grid data is rendered.

    Code:
    grid.getView().getEl().mask('Loading...');

Similar Threads

  1. Replies: 4
    Last Post: 29 Aug 2012, 6:23 AM
  2. Show a waiting message box on a specific panel
    By superman2008 in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 24 Dec 2008, 12:01 PM
  3. Waiting Message in Ajax Request
    By kgm in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 11 Apr 2008, 6:51 AM
  4. Display a message while waiting for js to complete
    By erezra in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 28 Feb 2008, 2:54 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •