점 "."을 갖는 속성이있는 json이 있습니다. 그것의 연산자. 메신저에서 그리드를 렌더링하려고하면 아무런 오류없이 공백으로 표시됩니다. 이 내 colModel도트 연산자로 jquery jqgrid propery
colModel : [ {
name : 'service.name',
search : 'true',
editable : true,
//index : 'service.name',
width : 200,
jsonmap : "cell.service.name"
},
{
name : 'function.code',
search : 'true',
editable : true,
sortable:true,
//index : 'function.code',
width : 200,
jsonmap : "cell.function.code"
}],
JSON 리더입니다
{
"total":1,
"page":1,
"records":2,
"rows":[{
"id":2110040,
"cell":{
"function.code":"dsadad",
"service.name":"dsadasda"
}
},
{
"id":2115040,
"cell":{
"function.code":"iuiyuiy",
"service.name":"iyuiyuiy"
}
}
]
}
:
가 여기 내 JSON의
jsonReader : {
repeatitems : false,
root : "rows",
cell : "cell",
id : "id",
page : "page",
records : "records"
},
도와주세요, 내가 무슨 말이냐?
감사합니다.
그게 효과가! 오렐 감사합니다. – user620339
@ user620339 : 안녕하세요. – Oleg
@ user620339 : 방법 [다른 데모] (http://www.ok-soft-gmbh.com/jqGrid/user620339_old.htm)에서 [이전 답변] (http://stackoverflow.com/questions/6853457)/jquery-jqgrid-renders-empty-table/6905206 # 6905206)도 작동합니다. – Oleg