Results 1 to 4 of 4

Thread: How to force LoadMask on GridPanel

  1. #1
    Sencha User
    Join Date
    Mar 2010
    Posts
    83

    Question How to force LoadMask on GridPanel

    Is there a way to force a loadMask to appear on a GridPanel without changing the store?

    In firebug, I tried turning on the GridPanel's mask-related properties, as well as creating a Ext.LoadMask and passing the grid.
    Code:
    >>> this.grid
    Object { initialConfig=Object,  more...}
    >>> this.grid.loadMask = true
    true
    >>> this.grid.maskDisabled = false
    false
    >>> var mask = new Ext.LoadMask(this.grid);
    >>> mask.show();
    >>> Ext.getBody()
     Object { dom=,  more...}
    >>> var myMask = new Ext.LoadMask(Ext.getBody(), {msg:"Please wait..."});
    undefined
    I tried other random stuff that seemed like bigger long shots...

    Anyone know a valid way to force the load mask to appear over the grid?

  2. #2

    Default

    Code:
    tbar: [{
    	text: 'LoadMask',
    	handler: function () {
    		var grid  = (this.ownerCt.ownerCt);
    		
    		var myMask = new Ext.LoadMask(grid.id, {msg:"Please wait..."});
    		myMask.show();
    	}
    }],
    Is that what you're after?

  3. #3
    Ext User
    Join Date
    Oct 2008
    Posts
    195

    Default

    try
    grid.getEl().mask('maskMessage', 'maskCls');

    and

    grid.getEl().unmask();

  4. #4
    Sencha User
    Join Date
    Mar 2010
    Posts
    83

    Default

    Both suggestions worked! Thank you!

Similar Threads

  1. loadMask in GridPanel
    By sushiBMW in forum Ext 3.x: Help & Discussion
    Replies: 4
    Last Post: 28 Jan 2010, 12:14 AM
  2. How to force GridPanel emptyText to remain visible?
    By dbassett74 in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 14 Jul 2009, 7:23 AM
  3. loadMask of GridPanel
    By everrich in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 5 Oct 2008, 10:22 PM
  4. GridPanel and LoadMask
    By marco76 in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 7 Jul 2008, 6:38 AM
  5. Force GridPanel to full width and height
    By Troy Wolf in forum Ext 2.x: Help & Discussion
    Replies: 9
    Last Post: 9 Apr 2008, 7:59 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
  •