[JavaScript] 纯文本查看 复制代码
jQuery(选择器).jqGrid({
subGrid : false,
url : 地址,
mtype :"POST",
datatype : "json",
height : 450,
colNames : ['编码', '标准','项目','价格','单位','时间'],
colModel : [
{
name : 'fCode',
index : 'fCode',
label : '编码',
key:true,
width : 160,
sorttype : "string",
search : false
}],
sortname : "fcode",
sortorder : "asc",
viewrecords : true,
rowNum : 10,
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/sysuser/operateSysUser"
grouping : true,
groupingView : {
groupField : ['name'],
groupDataSorted : true,
plusicon : 'fa fa-chevron-down bigger-110',
minusicon : 'fa fa-chevron-up bigger-110'
},
*/
});