Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Populating a jQGrid

Posted on 2009-07-14
1
Medium Priority
?
1,586 Views
Last Modified: 2013-11-08
Hello.
Basically I'm trying to populate a jQgrid (http://www.trirand.com/blog/ for anyone unfamiliar) and I'm looking for the best method in doing so. I'm using a JNDI reference to a datasource and jQgrid will take resultsets in the form of XML or JSON string. What's the easiest way to go about doing this? Which method would be better to use, XML or JSON? Could anyone provide me with some sample code or reference to help with this task?


Thanks
0
Comment
Question by:Amos_Mike
1 Comment
 
LVL 82

Accepted Solution

by:
hielo earned 1500 total points
ID: 24852225
refer to the documentation:
http://trirand.com/jqgrid/jqgrid.html

specifically look at "Loading Data".

As for json vs xml, it really is a matter of familiarity/preference. I prefer to use xml and not have to deal with having to convert a json string to an actual json object.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Chart.js, used properly, can visually add a difference to your charting applications. It engages your visitors and allows them to interact with data they otherwise wouldn't be able to without expensive and complicated systems. For this…
A while back, I ran into a situation where I was trying to use the calculated columns feature in SharePoint 2013 to do some simple math using values in two lists. Between certain data types not being accessible, and also with trying to make a one to…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question