How to disable LoadMask on GridPanel
Asked Answered
S

2

5

I've a GridPanel which is updated every 10 seconds.

var refreshEnvironmentsStoreTask = {
    run: function() {
        this.getEnvironmentsStore().load()
    },
    scope: this,
    interval: 10000 //10 second
}
Ext.TaskManager.start(refreshEnvironmentsStoreTask);

As result of frequent updates on the grid appears flicker. I want to disable LoadMask but next code doesn't work:

Ext.define('MyGrid' ,{
    extend: 'Ext.grid.Panel',
    store : 'Environments',
    viewConfig: {
        loadMask: false
    }
});
Somatology answered 24/6, 2011 at 3:38 Comment(0)
P
7

Since the OP never shed any light on this and I was looking for it today, the answer is that this will work in versions of ExtJS after 4.01. I am using it now:

Ext.define('MyGrid' ,{
    extend: 'Ext.grid.Panel',
    store : 'Environments',
    viewConfig: {
        loadMask: false
    }
});
Phytosociology answered 23/2, 2013 at 2:20 Comment(0)
D
0

Have you tried creating a simple page and disabling it there before doing it on your page? It seems your setting the default which is false to false.

Ext.LoadMask

Ext.ComponentLoader

Demodulate answered 24/6, 2011 at 18:1 Comment(1)
Thanks for response. I've already found solution. This is a extjs 4.0.1 bug.Somatology

© 2022 - 2024 — McMap. All rights reserved.