JQGrid でローカルに定義された JSON データを使用しています。私のデータは次のようになります:-
{"total_rows":1662,"offset":0,"rows":
[
{"id":"338b79f07dfe8b3877b3aa41a5205e75","key":"2004-03-05T03:59:00+00:00","value": {"date":"2004-03-05T03:59:00+00:00","signature":"sig1","name":"name1"}},
{"id":"338b79f07dfe8b3877b3aa41a540cf58","key":"2004-03-05T03:59:00+00:00","value": {"date":"2004-03-05T03:59:00+00:00","signature":"sig2","name":"name2"}},
{"id":"338b79f07dfe8b3877b3aa41a566ca42","key":"2004-03-05T03:59:00+00:00","value": {"date":"2004-03-05T03:59:00+00:00","signature":"sig3","name":"name3"}},
{"id":"15add79dd3efec4f34786d5f6a33ec5c","key":"2004-07-26T14:03:00+00:00","value" :{"date":"2004-07-26T14:03:00+00:00","signature":"sig4","name":"name4"}}
]
}
私の JQGrid 定義は次のようになります。
datatype: "local",
height: 100,
colNames:['key', 'signature', 'name'],
colModel:[
{name:'key',index:'key', width:80}
{name:'value.signature',label:'Signature', width:100, align:"right"},
{name:'value.name',index:'name', width:80}
],
caption: "Load Once Example"
ただし、value.signature および value.name フィールドの列は常に空白です。
どんなポインタでも大歓迎です!