Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
Json Data is getting loaded but not displaying in Jqgrid
07/02/2013
13:34
Avatar
paritpd
Member
Members
Forum Posts: 4
Member Since:
07/02/2013
sp_UserOfflineSmall Offline

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.. 

08/02/2013
07:07
Avatar
paritpd
Member
Members
Forum Posts: 4
Member Since:
07/02/2013
sp_UserOfflineSmall Offline

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.

19/02/2013
15:01
Avatar
paritpd
Member
Members
Forum Posts: 4
Member Since:
07/02/2013
sp_UserOfflineSmall Offline

I have included another Jsp in the Jsp file which contains json data. I removed that include line. Now it is working fine.

Forum Timezone: Europe/Sofia

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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information