刷新grid的不显示loading效果

来源:互联网 发布:mysql注入漏洞修复 编辑:程序博客网 时间:2024/06/06 13:19

    viewConfig:{ 
         loadMask:false  
     },

解释:

view : Ext.view.Table
The Ext.view.Table used by the grid. ...
 
Ext.panel.Table
view source
viewConfig : Object

A config object that will be applied to the grid's UI view. Any of the config options available for Ext.view.Table can be specified here. This option is ignored if view is specified.

Available since: 4.0.4

将应用于表格的 UI 视图的配置对象。任何对于Ext.view.Table所使用到的配置选项都在这里被指定。 如果指定了view,则忽略此选项。



----------------------------------------------

Ext.define('Sunwave.view.device.config.CommGrid1', {
extend:'Sunwave.view.BaseGrid',
alias :'widget.commGrid1',
store:'Sunwave.store.device.CommStore',
toogleQuery:false,
title:'aaaaaaaa',
autoScroll:true,
hideNeId:true,
viewConfig:{//刷新grid的不显示loading效果
         loadMask:false //是否在加载数据时显示遮罩效果,默认为false ,
     },

    doPoll:function(){
  if(this.stopPollFlag) return;  //如果设置停止查询,则停止
  var me=this;
  ajaxRequest({
  url:'deviceConfigAction!findViewNeEvent.action',
  noMask:true,
  params:{
  neId:this.neId
  },
  callBack:function(result){
  var list = result.infoMap.list;
   
    //刷新底部的grid
    var commStore=me.getStore(); 
       commStore.applyBaseParams({
neId:me.neId
});
commStore.reload();//重新加载数据


//实时刷新
  setTimeout(function(){
me.doPoll();
},3000);
  }
  })
 


    }

0 0
原创粉丝点击