jqGrid的动态选择字段问题,怎么解决

 我来答
东坡下载站
2019-01-14 · 最新优质手游软件资源下载
东坡下载站
东坡下载是一个专业的无毒的免费的软件资源网站
向TA提问
展开全部

今天遇到一个奇怪的问题,就是在一样的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"
                    });
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式