本帖最后由 cy417358604 于 2012-06-18 23:25:02 编辑

解决方案 »

  1.   

    额,自己解决了,按键事件的代码改成这样就行了
    var starttime=Ext.getCmp("starttime").getValue();
    var endtime=Ext.getCmp("endtime").getValue();
    DWREngine.setAsync(false);
    proxy = new Ext.data.DWRProxy(UserRecordService.searchWeekRcordByUsername, true);
    DWREngine.setAsync(true);
    ds = new Ext.data.GroupingStore({
    proxy : proxy,
    reader : new Ext.data.ListRangeReader({
    id : 'recordid',
    totalProperty : 'totalSize'
    }, recordType),
    remoteSort : true,
    sortInfo : {
    field : 'recordid',
    direction : "ASC"
    }
    });
    ds.load({
    params : {
    start : start,
    limit : pageSize
    },
    arg : [],
    callback:function(records,options,success){
    }
    });
    grid.reconfigure(ds,cm);
    }来个人给分了
      

  2.   

    刚想说是不是你在更新过store后要对grid重bind