我必须在其中一列(中间列)中添加复选框..我应该制作一些行不可编辑的复选框..我只需要知道如何为标题实现全选选项..它没有出现网格..我已经设置了多选:真
columnDisplay = [{"name":"columnId",
"label":"Column Id",
"type":"string" ,
hidden:true,
"width":"200",
key:true
},
{
"name":"columnDisplayName",
"label":"Column Display Name",
"type":"string" ,
"visibility":true,
"width":"200"
},
{
"name":"visibility",
"label":"Visibility",
"editable": true,
"width":"200",
"edittype": "checkbox",
"editoptions": { value:"Y:N" },
"formatter": "checkbox",
"formatoptions": { disabled: false}
}];
createjqGrid : function (gridId , column , gridData){
$("#" + gridId).jqGrid({
datatype: 'local',
data: gridData,
editurl: 'clientArray',
colModel: columns,
loadonce: false,
autowidth: true,
shrinkToFit: false,
rownumbers: true,
multiselect: multiSelect,
multiboxonly:true,
cellEdit: false,
toppager: true,
cloneToTop: true,
gridview:true,
rowNum: 100,
viewrecords : true,
pager: "#pager" + gridId,
viewsortcols: viewSort,
cellsubmit: 'clientArray'
});
}
请帮忙!!提前致谢 。我必须使可见性列具有复选框..它适用于该列但在标题中我必须添加..在此处输入图像描述