文件名称:jqgrid 二次封装上传 jqgrid 5.0以上版本
文件大小:22KB
文件格式:JS
更新时间:2022-05-15 04:14:20
jqgrid 封装 简单 不改变原始 快速
jqgrid二次封装,快速加载grid表格,不改变原有的使用习惯,增加一些默认处理逻辑 var grid = $.jqGrid.init({ url: "<%=basePath%>/component/config/select.html", add: {content:"<%=basePath%>/admin/component/config/configEdit.jsp",area: ['860px', '540px'],title:"添加系统组件配置"}, edit: {content:"<%=basePath%>/component/config/edit.html",area: ['860px', '540px'],title:"编辑系统组件配置"}, del: "<%=basePath%>/component/config/delete.html", layer:{add:true,edit:true}, multiselect: true, rownumbers: true,//显示序号 colModel: [ {name:'id',index:'id',label:"ID", width:60,key: true,hidden: true}, {name:'name',index:'name', label:"名称",width:150,sortable:false}, {name:'class',index:'class',label:"类路径",width:90,sortable:true}, {name:'type',index:'type',label:"类型",width:60,sortable:true,editable: true,"editoptions":{value:selectTypeData['B4D84A86E42842188FB2658D6A9092A9'].grid},"formatter":'select'}, {name:'url',index:'url', label:"编辑页面路径",width:70}, {name:'enterprise',index:'enterprise', label:"企业",width:60}, {name:'username',index:'username', label:"创建人",width:60}, {name:'time',index:'time',label:"创建时间",width:90,sortable:true}, {name:'description',index:'description',label:"描述"} ] }); 按钮实现多种处理逻辑具体请看源码