Solved

Populating a jQGrid

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

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

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

What is a Lightbox? A Lightbox is the effect you see when you click, for example, an image and the screen fades out and up pops the same image but in its full size dimensions. There are lots of Lightbox effects for jQuery. Problem is they are a…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The viewer will learn how to dynamically set the form action using jQuery.
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)

840 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