Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable LoadMask on GridPanel

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
    }
});
like image 865
txt_flow Avatar asked Jun 24 '11 03:06

txt_flow


1 Answers

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
    }
});
like image 198
egerardus Avatar answered Nov 03 '22 09:11

egerardus