Which part is the difficult one ?
Give us more information to help you better…
If you are using J2EE you can use JasperReports to generate your reports in any format like Excel or PDF
This is a server side concern.
You can add a custom button and inside its code call a url where you generate the excel file…
Here the most important issue to setup jqGrid is the “pathtojsfiles” variable
in jquery.jqGrid.js.In my case I have a directory called “js” where I put all my javascript scripts, so I have :
var pathtojsfiles = “../js/js/packed/”; // need to be ajusted
Check with FireBug which files are been loaded…
Phil, I think it could be the response header..
Set to text/plain or text/xml…
Very strange…
Let's do something. Please return the json sample that I use and adjust your colModel accordinly…
Just to test…
You can take any cell value using code as :
var sr = jQuery(“#list”).getGridParam('selrow');
My json looks like :
{
total: “2”,
page: “1”,
records: “18”,
rows :[
Test using an xml string in your code. See “Xml String” in the docs…
Can you show the json output built in your servlet ?
Hi. Maybe you would need to add the xmlmap in your colModel…
I think you can use the setPostData()
Thanks a lot..!
If you will use json you have to change the datatype property to “json”
After that you must specify the jsonReader property. According the json text that i have it could be:
jsonReader: {
I think you have to supplyu the correct format of your json data in order to be displayed by jqGrid.
Check The Data Type chapter in the docs but basically you build a string with this format (data taken from my app):
{
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top