关于EXT中PagingMemoryProxy求助
首先贴个源代码:
var columns = [
{ header: "学科类别", dataIndex: "lb", sortable: true },
{ header: "课程编号", dataIndex: "kcbh", sortable: true },
{ header: "课程名称", dataIndex: "kcmc", sortable: true },
{ header: "学时", dataIndex: "xs", sortable: true },
{ header: "学分", dataIndex: "xf", sortable: true },
{ header: "开课学期", dataIndex: "kkxq", sortable: true,renderer:function(v){return "<font color='red'>"+v+"</font>"} }
];
var reader = new Ext.data.JsonReader({}, [
{ name: 'lb' },
{ name: 'kcbh' },
{ name: 'kcmc' },
{ name: 'xs' },
{ name: 'xf' },
{ name: 'kkxq' },
{ name: 'kkxy' },
{ name: 'khfs' },
{ name: 'bz' }
]);
var vstore=new Ext.data.JsonStore({
data:data1 ,
fields: ["zydm", "zymc", "kclb", "xkzdfs"]
});
var store = new Ext.data.GroupingStore({
reader: reader,
proxy: new Ext.data.PagingMemoryProxy(data),
groupField: 'lb',
sortInfo: { field: 'kcbh', direction: "ASC" }
});
var grid1=new Ext.grid.GridPanel({
title:"研究生专业培养方案 ",
store: vstore,
loadmask:true,
clicksToEdit: 1,
width: 600,
&n