extjs自带分页, 载入数据时传入参数
时间:2010-11-03 来源:悉野
bbar: new Ext.PagingToolbar
(
{
pageSize: pageSize,
store: gridData,
displayInfo: true,
displayMsg: "一共有{2}条数据"
}
),
currentStore.baseParams["dept_id"] = curDepartID;
currentStore.baseParams["Semester_ID"] = curSemesterID;
});
(
{
pageSize: pageSize,
store: gridData,
displayInfo: true,
displayMsg: "一共有{2}条数据"
}
),
gridData重新载入时会自动上传start,limit值,但自己有时要附加参数,可以如下:
gridData.on("beforeload", function(currentStore, options) {currentStore.baseParams["dept_id"] = curDepartID;
currentStore.baseParams["Semester_ID"] = curSemesterID;
});
curDepartID, curSemesterID在外面定义的 通过其它方式赋值给他们
相关阅读 更多 +