I am trying to load local data in jqgrid , but its not getting loaded.
Here is the fiddle
$("#list").jqGrid({
datatype: "local",
colNames: ["OrderID", "CustomerID"],
colModel: [
{ label: 'Order ID', name: 'OrderID', key: true, width: 75 },
{ label: 'Customer ID', name: 'CustomerID', width: 150 },
],
viewrecords: true,
height: 250,
pager: "#pager",
data:jsData
});
Point the data
to jsData.rows
rather than jsData
. The root of the object doesn't directly contain the array or keys that you're trying to display.
Updated fiddle here: http://jsfiddle.net/ToddT/6bx4w3m6/
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.