Solved

Populating a jQGrid

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer …
I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
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…

759 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

20 Experts available now in Live!

Get 1:1 Help Now