jQgrid を使用しようとしていますが、テーブルはデータをロードできません。バックグラウンドには、透明な黒いブロック UI のようなものがあります。私が受け取ったJson応答は次のとおりです。
{"total":"1","page":"1","records ":"10",
"rows":[
{"id":"26010","cell":[26010,303,100,""]},
{"id":"26009","cell":[26009,303,100,""]},
{"id":"26008","cell":[26008,303,100,""]},
{"id":"26007","cell":[26007,303,100,""]},
{"id":"26006","cell":[26006,303,100,""]},
{"id":"26005","cell":[26005,303,100,""]},
{"id":"26004","cell":[26004,303,100,""]},
{"id":"26003","cell":[26003,303,100,""]},
{"id":"26002","cell":[26002,303,100,""]},
{"id":"26001","cell":[26001,303,100,""]}]}
ページ:
<table id="list3"></table>
<div id="pager3"></div>
<table id="navgrid"></table>
<div id="pagernav"></div>
<script>
$(document).ready(function(){
$("#list3").jqGrid({
url:'<%=getForecastedTransactionURL%>',
mtype:'POST',
datatype : 'json',
colNames : [ 'Txn Id', 'Transaction Type', 'Amount', 'Description'],
colModel : [ {
name : 'id',
index : 'id',
sorttype : "int",
hidden:true
}, {
name : 'transactionType',
index : 'transactionType',
width : 100
}, {
name : 'amount',
index : 'amount',
width : 80,
align : "right",
sorttype : "number"
}, {
name : 'description',
index : 'description',
width : 80,
align : "right",
sorttype : "text"
}],
multiselect : true,
rowNum : 20,
rowList : [ 10, 20, 30 ],
pager : '#pager3',
sortname : 'transactionType',
viewrecords : true,
sortorder : "desc",
loadonce : true,
caption : "Load Once Example"
});
});
</script>
不足しているものはありますか?