Forum


13:34

07/02/2013

I have written code in jsp. used Json object for displaying data in Jqgrid.When i printed json object i found data is present in json object but it is not displaying in Jqgrid. When I copied data of json object into Json string it is getting loaded and successfully displaying in Jqgrid. Please help me to resolve this issue.
Thanks..
07:07

07/02/2013

this is my jsp code-
JSONObject responcedata=new JSONObject();
responcedata.put("total",totalrow); responcedata.put("page",cpage); responcedata.put("records",rcount); Report obj= new Report(); responcedata=obj.ReportGrid(responcedatal);
System.out.println(responcedata);
I m getting json data in this form
{"total":"21","rows":[{"cell":["HS","H","10","5","G","9288"],"id":"1"},{"cell":["",null,null,null,"G","2099"],"id":"2"},{"cell":["HS","F","3","53","G","86578"],"id":"3"},{"cell":["HS","F","7","26","G","8268"],"id":"4"},{"cell":["HS","F","8","54","G","221"],"id":"5"},{"cell":["HS","F","5","77","G","1020"],"id":"6"},{"cell":["HS","H","14","14","G","73334"],"id":"7"},{"cell":["HS","C","21","1","G&B","1512"],"id":"8"},{"cell":["HS","F","2","105","G","4960"],"id":"9"},{"cell":["HS","F","4","21","G","86889"],"id":"10"}],"records":11}
I used this json string then jqgrid is displaying data but when i use json object responcedata in my example then it only shows loding but data is not displaying.
Most Users Ever Online: 715
Currently Online:
201 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