没有合适的资源?快使用搜索试试~ 我知道了~
jqGrid的表格的每行每列的数据既显示又可以编辑。
资源推荐
资源详情
资源评论
$(function(){
$("#showData").jqGrid({
url: "<%= basePath %>/delivery/Edit.do?dId="+${deliveryModel.id},
colNames: ["行号", "时间", "到达地点", "联系人", "联系电话", "描述信息","操作"],
colModel: [
{name: "lineNum", index: "lineNum", align: 'center', width: 30,hidden:true},
{name: "arrivalDate", index: "arrivalDate", width: 80, align: 'left',formatter:ajaxArrivalDate,unformat:inputUnformat,sortable: true}, /* noLink */
{name: "arrival", index: "arrival", width: 80, align: 'left',formatter:ajaxArrival,unformat:inputUnformat,sortable: false},
{name: "contact", index: "contact", align: 'left', width: 50,formatter:ajaxContact,unformat:inputUnformat, sortable: false},
{name: "phone", index: "phone", align: 'left', width: 80,formatter:ajaxPhone,unformat:inputUnformat, sortable: false},
{name: "description", index: "description", align: 'left', width: 80,formatter:ajaxDescropt,unformat:inputUnformat,sortable: false},
{align:'center',formatter: cLink,unformat:linkUnformat,width: 30,sortable:false}
],
rowNum:1000,
defaultvalue:{},
rownumbers:true,
sortable:false,
autoScroll: true,
onSelectRow: function (rowid) {},
gridComplete:function(){
autoRefersh();
jqFocus();
},
loadComplete:function(){
//默认增加一行
jqDefaultRow();
},
jsonReader: {repeatitems : false}
});
$(".arrivalDate").datepicker({dateFormat: 'yy-mm-dd' });
$("#showData").jqGrid({
url: "<%= basePath %>/delivery/Edit.do?dId="+${deliveryModel.id},
colNames: ["行号", "时间", "到达地点", "联系人", "联系电话", "描述信息","操作"],
colModel: [
{name: "lineNum", index: "lineNum", align: 'center', width: 30,hidden:true},
{name: "arrivalDate", index: "arrivalDate", width: 80, align: 'left',formatter:ajaxArrivalDate,unformat:inputUnformat,sortable: true}, /* noLink */
{name: "arrival", index: "arrival", width: 80, align: 'left',formatter:ajaxArrival,unformat:inputUnformat,sortable: false},
{name: "contact", index: "contact", align: 'left', width: 50,formatter:ajaxContact,unformat:inputUnformat, sortable: false},
{name: "phone", index: "phone", align: 'left', width: 80,formatter:ajaxPhone,unformat:inputUnformat, sortable: false},
{name: "description", index: "description", align: 'left', width: 80,formatter:ajaxDescropt,unformat:inputUnformat,sortable: false},
{align:'center',formatter: cLink,unformat:linkUnformat,width: 30,sortable:false}
],
rowNum:1000,
defaultvalue:{},
rownumbers:true,
sortable:false,
autoScroll: true,
onSelectRow: function (rowid) {},
gridComplete:function(){
autoRefersh();
jqFocus();
},
loadComplete:function(){
//默认增加一行
jqDefaultRow();
},
jsonReader: {repeatitems : false}
});
$(".arrivalDate").datepicker({dateFormat: 'yy-mm-dd' });
资源评论
Singe2023
- 粉丝: 23
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功