there!
I have one column in my jqGrid that is empty.
But I checked the object on the chrome console, and that is fine.
colModel definition
colModel:[ {name:'id',index:'id', width:55,editable:false,editoptions:{readonly:true,size:10},hidden:true}, {name:'firstName',index:'firstName', width:100,searchoptions: { sopt: ['eq', 'ne', 'cn']}}, {name:'lastName',index:'lastName', width:100,editable:true, editrules:{required:true}, editoptions:{size:10}}, {name:'books[0].nome',index:'books[0].nome', width:100,editable:true, editrules:{required:true}, editoptions:{size:10}}, {"formatter":"myfunction", formatoptions:{baseLinkUrl:'/demo/{firstName}|view-icon'}} ]
JSON response
{ "total": "10", "page": "1", "records": "3", "rows": [ { "id": 1, "firstName": "John", "lastName": "Smith", "books": [{"nome": "HeadFirst"}] }, { "id": 2, "firstName": "Jane", "lastName": "Adams", "books": [{"nome": "DalaiLama"}] }, { "id": 35, "firstName": "Jeff", "lastName": "Mayer", "books": [{"nome": "Bobymarley"}] } ] }
chrome console check object
rowdata.books[0].nome "HeadFirst"
Does anyone know where theres is a trick?
Tks!