I am having problem rendering data in my Jqgrid..My JSON data is in this form
[
{
"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"
}
]
and my jqGrid is like this
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"
});
What I am doing wrong in here...any idea