var store = new Ext.data.Store({
pageSize: 100,
fields: [{name: 'id'}, {name: 'checksource'}, {name: 'inforeturn'}],
proxy: {
type: 'ajax',
url: Ext.ctxpath + '/main/getGridDatas.do',
reader: {
type: 'json',
root: 'items',
totalProperty: 'total'
},
extractResponseData:function (response) {
return response;
}
},
remoteFilter: true,
autoLoad: false
});
me.loadData = function (startdate, enddate) {
store.filters.clear();
store.currentPage = 1;
var sql = " select t.* from JWPT.YYAQ_CHECK_LRXD t where 1=1";
sql += " order by t.questiontype";
store.filter([{property: 'sql', value: sql}]);
}
回调函数:extractResponseData