Results 1 to 7 of 7

Thread: Hide load mask

  1. #1
    Sencha User
    Join Date
    Oct 2010
    Location
    Ukraine
    Posts
    1

    Post Hide load mask

    Good day!
    Sorry for my bad english :-)
    Can you help me with one small problem? I want to disable showing of load mask on GridPanel at the moment of loading data to the store. In ExtJS 3 it was very simple:

    loadMask: false (by default)

    but in ExtJS4 Ext.grid.Panel has no configuration option like loadMask and LoadMask is showing by default !Thank you very much :-)

  2. #2

    Default

    Also wondering how to accomplish this...

  3. #3

    Default

    Add this property to your Ext.grid.Panel config:

    Code:
    viewConfig: {
    	loadingText: undefined
    }

  4. #4
    Sencha User
    Join Date
    Jul 2011
    Location
    Novosibirsk
    Posts
    63

    Default

    zackangelo

    thanks for your answer, it's very usefull. but the grid area still stay disabled. Any way it's desides my porblems)

  5. #5
    Sencha User
    Join Date
    Mar 2010
    Location
    Delft - The Netherlands
    Posts
    28

    Default

    To disable the loadMask add this to Ext.grid.Panel config:

    Code:
    viewConfig: {
        loadMask: false
    }
    If you only remove the text, the underlying mask will still be visible when the grid's store loads.

    http://docs.sencha.com/ext-js/4-0/#!/api/Ext.grid.View-cfg-loadMask

  6. #6
    Sencha User
    Join Date
    Dec 2012
    Posts
    2

    Default Temporarly block loadMask on store load

    when the viewConfig doesn't work use the following.

    Code:
                    Ext.log('Auto Refresh - Refreshing Data in store');
                    gridObj.view.loadMask.maskOnDisable = false;
                    var emptyLoadMask = gridObj.view.loadMask.disable();
                    gridObj.store.load(function(){
                        emptyLoadMask.enable();
                    });

  7. #7
    Sencha User
    Join Date
    Feb 2012
    Posts
    10

    Default

    Try this on grid:

    Code:
      onAfterRender: function(grid) {
            grid.view.loadMask = false;
        }

Posting Permissions

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