我不能理解这段代码,谁能理解,麻烦帮一下忙
Ext.define('com.ritetone.core.position.store.SiteStore', {
extend: 'Ext.data.Store',
requires:['Ext.ux.data.DwrProxy'],
funName:Ext.emptyFn,
proxy: {
type: 'dwr',
/*DWR method that will return data.*/
dwrFunction:dwrPositionService.findSiteByCriteria,
/** Function that returns parameters for remote
* DWR Method for each request.
*/
getDwrArgs: function(operation, store) {
var argObj = Ext.apply({}, operation.params);
// argObj.start =this.baseParams.start;
// argObj.limit = this.baseParams.limit;
argObj=this.extraParams.siteCriteria;
argObj.firstResult =operation.start;
argObj.fetchSize = operation.limit;
argObj.maximumResultSize = operation.limit;
/**
* If server side method takes several parameters
* then array must be returned.
*/
return argObj;
},
reader: {
root: 'list',
totalProperty:'total'
}
}
});
------解决方案--------------------
扩展ext的组件,拉数据转成JSON格式,应用到gridPanel中,带分页..