Solved

Populating a jQGrid

Posted on 2009-07-14
1
1,537 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 500 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Introduction HyperText Transfer Protocol (http://www.ietf.org/rfc/rfc2616.txt) or "HTTP" is the underpinning of internet communication.  As a teacher of web development I have heard many questions, mostly from my younger students who have come to t…
There are a couple ways to attach a JavaScript function to dynamically created elements. You can make a new script for each element as it’s created or you can use delegation. Delegation allows a single script that is added at page creation to mat…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)
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…

816 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now