Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Extjs-grid连续显示加载掩码_Extjs_Grid_Panel - Fatal编程技术网

Extjs-grid连续显示加载掩码

Extjs-grid连续显示加载掩码,extjs,grid,panel,Extjs,Grid,Panel,我正在使用extjs(4.1.0)MVC。 我用组合框过滤器、日期选择器过滤器等设置了一个自定义网格。我正在附加来自控制器、视图和存储的代码片段 I传入的响应与模型不同,因此,通过覆盖故事代理的read()来拦截响应。 此外,数据需要作为有效负载中的Json数据发送,因此store proxy的buildRequest()也会被覆盖,以便将Json数据添加到请求中。(此处还添加了所有排序、分页参数) 除此之外,视图还有无限的滚动 视图第一次加载良好。但在combobox change/date

我正在使用extjs(4.1.0)MVC。 我用组合框过滤器、日期选择器过滤器等设置了一个自定义网格。我正在附加来自控制器、视图和存储的代码片段

I传入的响应与模型不同,因此,通过覆盖故事代理的read()来拦截响应。 此外,数据需要作为有效负载中的Json数据发送,因此store proxy的buildRequest()也会被覆盖,以便将Json数据添加到请求中。(此处还添加了所有排序、分页参数) 除此之外,视图还有无限的滚动

视图第一次加载良好。但在combobox change/date change上,存储将被重新加载,并在请求中作为json参数传递

我在firebug/chrome中看到了XHR中的响应,但网格继续显示加载掩码,等待加载。。请帮助解决可能出现的问题

Ext.define('Message.store.ListingStore', {
extend: 'Ext.data.Store',
model: 'Message.model.ListingModel',
autoLoad: true,
remoteSort: true,
purgePageCount:0,
buffered: true,....
.......
proxy: {
    type: 'ajax',
    actionMethods: {
        read: 'POST'
        },
    url: 'http://localhost:8080
    buildRequest: function(operation) {
    Ext.apply(request, {
       params: null,
       jsonData: Ext.apply(request.params, {
           page: operation.page,
           start: operation.start,
           limit: operation.limit,
           catId:catValue,
           sort:operation.sorters[0].property,
           dir:operation.sorters[0].direction
       })
   });
   ........return request;
   }
   root: 'data',
        totalProperty:'total',
        successProperty :'success'
    },
.....
});

//controller

Ext.define('Message.controller.Listing', {
extend:'Ext.app.Controller',
stores:          ['ListingStore','SubscriptionStore','SubCategoryMasterStore','PriorityMasterStore'],
models: ['ListingModel'],
views: [
        'MessageListing'
    ],
init:function () {
    var controller = this;
'messagelisting  combo' : {
            select : this.handleComboSelect
        },

        'messagelisting  datefield' : {
            select : this.handleDateSelect
        },
 .....
 handleComboSelect : function(gridview, el, rowIndex, colIndex, e, rec, rowEl) {
    this.getStore('ListingStore').load();
},

handleDateSelect: function(gridview, el, rowIndex, colIndex, e, rec, rowEl) {
    this.getStore('ListingStore').load({callback: function(response){

    }});
这是一个非常复杂的案例,因此我无法发布整个代码。
谢谢。

我想你有我在这里描述的问题:

问候,, 亚历克