?
Solved

Populating a jQGrid

Posted on 2009-07-14
1
Medium Priority
?
1,582 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Enroll in September's Course of the Month

This month’s featured course covers 16 hours of training in installation, management, and deployment of VMware vSphere virtualization environments. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

In this article you'll learn how to use Ajax calls within your CodeIgniter application. To explain this, I'll illustrate how to implement a simple contact form to allow visitors to send you an email through your web site.
Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
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)
Suggested Courses

718 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