Just want to confirm something here. Is it possible to use jqGrid's userData with a javascript type directly (as opposed to using an object with field(s))?
If I modify the example in the jqGrid doc, I would like to return this json to jqGrid:
{
total: "xxx",
page: "yyy",
records: "zzz",
userdata: 0,
rows : [
{id:"1", cell:["cell11", "cell12", "cell13"]},
{id:"2", cell:["cell21", "cell22", "cell23"]},
...
]
}
and have jQuery("grid_id").jqGrid('getGridParam', 'userData')
return 0
.
Presently it seems to return an empty object { }
instead.
I use jqGrid 4.4.1.