Forum
Topic RSS
03:49
16/08/2011
OfflineHi here!
could you show me which is the "jsonReader" for this datasource:
{
"total":"30",
"page":"1",
"records":"300",
"result": [
{ "car": { "id":495,
"title":"Wireless Communications-4",
"power":8,
"color":"Turquoise",
"manufacturer":"Leexo",
"production_starts_at":"2000-10-06",
"production_ends_at":"2027-04-04" }
},
{"car": { "id":463,
"title":"Wholesale, Other-8",
"power":8,
"color":"Red",
"manufacturer":"Youfeed",
"production_starts_at":"2003-01-07",
"production_ends_at":"2029-03-28"}
},
{"car": { "id":355,
"title":"Wholesale Other-1",
"power":2,
"color":"Blue",
"manufacturer":"Realbuzz",
"production_starts_at":"2004-06-07",
"production_ends_at":"2027-10-12"}
}
]
}
I can read it OK, using dot accesing in colModel "name" property
colModel :[ {name:'car.title', index:'title', width:55} .... .... ... ]
And this jsonReader
jsonReader : {
root:"result",
page: "page",
total: "total",
records: "records",
repeatitems: false,
id: "car.id"
}
But I want to use it directly using "cell" definition and avoid the dot accesing in name property or jsonmap property.
jsonReader : {
...
cell: "car"
...
}
But cell property don't runs properly with this estructure... I can't get the correct jsonReader set.
I think tried all the possible combinations, but not results. Perhaps this data structure can't be mapped directly to the jsonReader and needs using dot accessing or jsonmap in colModel
Any suggestions?
Thanks guys!!
Most Users Ever Online: 994
Currently Online:
19 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66
Log In
Home