I have a json with a property having dot "." operator in it.
When im trying to render my grid, it comes up as blank (without any errors).
Here's my 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"
}
}
]
}
this is my colModel
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 reader is:
jsonReader : {
repeatitems : false,
root : "rows",
cell : "cell",
id : "id",
page : "page",
records : "records"
},
Please help,what am i missing here ??
Thanks!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…