隐藏网格的loadMask

时间:2014-01-08 16:45:16

标签: extjs4.2

这是我的代码:

var partyReceiptTerminalGrid = Ext.create('Ext.ux.LiveSearchGridPanel', {

id:'partyReceiptTerminalGrid',

store: partyReceiptTransactionStore,

title:'Receipts',

autoScroll: true,

loadMask:false,

我的麻烦是loadMask:false无法使用Extjs 4.2。有谁知道为什么?

1 个答案:

答案 0 :(得分:1)

loadMask实际上不是网格的配置选项。相反,您必须将其嵌套在viewConfig配置选项中。

var partyReceiptTerminalGrid = Ext.create('Ext.ux.LiveSearchGridPanel', {

id:'partyReceiptTerminalGrid',

store: partyReceiptTransactionStore,

title:'Receipts',

autoScroll: true,

viewConfig: {
    loadMask:false
},