It is posible to save a complex objet into a column and to recover it after.
This is an example: Json:
[{"datamain":"mydata",
"address":{"data1":15,"data2":0.0,"data3":"1000"}}
}]
Jqgrid:
jQuery("#rowed5").jqGrid({
datatype: "local",
loadtext:"Loading...",
colNames:['Name',
'obaddress'],
colModel:[
{name:'datamain',index:'datamain', width:200,editable: true,edittype:'text'},
{name:'address',index:'address', width:30, editable: false,hidden : true,edittype:'text'}
],
cellsubmit: "clientArray",
pager:"#pager"
});
If I try to access addres:
var rowData = $("#rowed5").getRowData(rowid);
var myaddress= rowData['address'];
Then I get '[object Object]' but it is a string!!! I can not do: myaddress.data1
Any recommendation???