1个回答
展开全部
ligerUI表格接收的json格式为:
{"Rows":[{"id":"value","name":"value",...},{对象2}...],"Total":count}
比如:
{"Rows":[{"amount":"123","applicant":"dasd","applyDate":"2012-07-05 18:20:24"},{"amount":"1231","applicant":"dasd","applyDate":"2012-07-04 17:55:34"}],"Total":2}
页面:
$('#paymentsGrid').ligerGrid({
title: '付款申请列表',
columns: [
{name:'uuid',display:'主键',hide:1},
{name:'applyDate',display:'申请日期',width:80,align:'right'},
{name:'applicant',display:'申请人',width:100,align:'left'}
],
url: 'xx.action',
usePager: true,
checkbox: true,
rownumbers: true,
headerRowHeight:30, //表头行的高度
sortName:'applyDate,
sortOrder:'desc',
toolbar:{....}
});
{"Rows":[{"id":"value","name":"value",...},{对象2}...],"Total":count}
比如:
{"Rows":[{"amount":"123","applicant":"dasd","applyDate":"2012-07-05 18:20:24"},{"amount":"1231","applicant":"dasd","applyDate":"2012-07-04 17:55:34"}],"Total":2}
页面:
$('#paymentsGrid').ligerGrid({
title: '付款申请列表',
columns: [
{name:'uuid',display:'主键',hide:1},
{name:'applyDate',display:'申请日期',width:80,align:'right'},
{name:'applicant',display:'申请人',width:100,align:'left'}
],
url: 'xx.action',
usePager: true,
checkbox: true,
rownumbers: true,
headerRowHeight:30, //表头行的高度
sortName:'applyDate,
sortOrder:'desc',
toolbar:{....}
});
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询