我对我的格网中的数据表示质疑。 我的逊尼派数据以这种形式出现。
[
{
"orderNumber": "5917500220100811",
"chainNumber": "1",
"divisionNumber": "1",
"customerNumber": "37029",
"loadNumber": "59175",
"orderType": "1",
"stopSeq": 2,
"latestTime": "Aug 13, 2010 1:12:21 PM",
"orderStatus": "6",
"batchNumber": "1059",
"maxPalletCube": "1982179262",
"billingFlag": "N",
"orderDetailsList": [],
"id": 2384,
"createdDate": "Aug 11, 2010 6:54:48 PM",
"createdUser": "USER",
"lastModifiedDate": "Aug 13, 2010 10:12:21 AM",
"lastModifiedUser": "USER"
},
{
"orderNumber": "5917500120100811",
"chainNumber": "1",
"divisionNumber": "1",
"customerNumber": "37003",
"loadNumber": "59175",
"orderType": "1",
"stopSeq": 1,
"latestTime": "Aug 13, 2010 1:12:21 PM",
"orderStatus": "6",
"batchNumber": "1056",
"maxPalletCube": "1982179262",
"billingFlag": "N",
"orderDetailsList": [],
"id": 2385,
"createdDate": "Aug 11, 2010 6:54:48 PM",
"createdUser": "USER",
"lastModifiedDate": "Aug 13, 2010 10:12:21 AM",
"lastModifiedUser": "USER"
}
]
我的吉杰里和我。
jQuery("#list10").jqGrid({
url: /cpsb/json/test.json ,
datatype: json ,
colNames:[ Order , Load , Gate Time , Stop , Customer , Status ],
colModel:[
{name: orderNumber ,index: orderNumber , width:55, sorttype:"int"},
{name: loadNumber ,index: loadNumber , width:100, sorttype:"int"},
{name: latestTime ,index: latestTime , width:80, align:"right",
sorttype:"date", formatter:"date"},
{name: stopSeq ,index: stopSeq , width:80, align:"right", sorttype:"int"},
{name: customerNumber ,index: customerNumber , width:130,align:"right",
sorttype:"int"},
{name: orderStatus ,index: orderStatus , width:150, sortable:true} ],
rowNum:10,
rowList:[10,20,30],
pager: #pager10 ,
sortname: Gate Time ,
sortorder: "desc",
viewrecords: true,
multiselect: true,
caption: "Order Header"
});
我在这里做的是错的。