jqGrid的动态选择字段问题,怎么解决
1个回答
展开全部
今天遇到一个奇怪的问题,就是在一样的jqgrid代码中,我仅仅是将本来作为json对象的一段文本换成有着同样内容的对象,实际结果就出现了问题。
jQuery(grid_selector).jqGrid({ //。。。。。。。。。。。。。。。。。。。。。。//
subGrid : false,
url : "${contextPath}/sys/brochure/getSignUp?signUpSection="+encodeURI(encodeURI(signUpSection))+"&signUpTime="+signUpTime,
datatype : "json",
height : 450,
colNames : ["序号", "课程班级", "任课教师", "学制", "招生计划数", "学费(元)/学年", "上课时间", "上课教室", "实际人数"],
colModel : [{
"name": "courseName",
"index": "courseName",
"label": "课程班级",
"width": 60,
"search": false
}, {
"name": "id",
"index": "id",
"label": "序号",
"sorttype": "long",
"width": 60,
"search": false
}, {
"name": "teacher",
"index": "teacher",
"label": "任课教师",
"width": 60,
"search": false
}, {
"name": "length",
"index": "length",
"label": "学制",
"width": 60,
"search": false
}, {
"name": "planNumber",
"index": "planNumber",
"label": "招生计划数",
"width": 60,
"sorttype": "long",
"search": false
}, {
"name": "tuition",
"index": "tuition",
"label": "学费(元)/学年",
"width": 60,
"sorttype": "long",
"search": false
}, {
"name": "classTime",
"index": "classTime",
"label": "上课时间",
"width": 60,
"search": false
}, {
"name": "classRoom",
"index": "classRoom",
"label": "上课教室",
"width": 60,
"search": false
}, {
"name": "actualNumber",
"index": "actualNumber",
"label": "实际招生数",
"width": 60,
"sorttype": "long",
"search": false
}],
//scroll : 1, // set the scroll property to 1 to enable paging with scrollbar - virtual loading of records
sortname : "courseName",
sortorder : "asc",
viewrecords : true,
rowNum : 50,
rowList : [ 10, 20, 30 ],
pager : pager_selector,
altRows : true,
//toppager : true,
multiselect : true,
//multikey : "ctrlKey",
multiboxonly : true,
loadComplete : function() {
var table = this;
setTimeout(function(){
styleCheckbox(table);
updateActionIcons(table);
updatePagerIcons(table);
enableTooltips(table);
}, 0);
},
editurl : "${contextPath}/sys/dict/operateDict"
});
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询