Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9236501
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T07:18:29+00:00 2026-06-18T07:18:29+00:00

jqGrid is not displaying the response returned by java service. Html: <table id=fbDetailTable style=display:

  • 0

jqGrid is not displaying the response returned by java service.

Html:

<table id="fbDetailTable" style="display: none"></table>

Java Script:

jQuery("#fbDetailTable").jqGrid({

url: "/ReportBatch/rs/ReportService/getFB?fB="+frtBill,
    datatype: "json",
colNames: ['Store Number', 'Order Number', 'SKU number',
           'Shipped Quantity','Order Created Date'],
colModel:[{name:'strNbr',index:'strNbr',width:100,jsonmap:'strNbr'},
          {name:'orderNbr',index:'orderNbr',width:100,jsonmap:'orderNbr'},
          {name:'skuNbr',index:'skuNbr',width:100,jsonmap:'skuNbr'},
          {name:'shpdQty',index:'shpdQty',width:100,jsonmap:'shpdQty'},
          {name:'ordCrtDt',index:'ordCrtDt',width:100,jsonmap:'ordCrtDt'}],
jsonReader: { repeatitems : false, strNbr: "0" },
viewrecords: true, 
loadonce:true,                                
    caption:"Order Details"
});

Service response:

[{"strNbr":"6310",
  "orderNbr":"10979577",
  "skuNbr":"646274",
  "shpdQty":"1",
  "ordCrtDt":"2013-01-29"},     
 {"strNbr":"6310",
  "orderNbr":"10979583",
  "skuNbr":"765992",
  "shpdQty":"3",
  "ordCrtDt":"2013-01-29"
 }]

Response Headers:

Content-Type    application/json
Date    Mon, 04 Feb 2013 20:21:24 GMT
Server  Apache-Coyote/1.1
Transfer-Encoding   chunked
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T07:18:31+00:00Added an answer on June 18, 2026 at 7:18 am

    The main error is that your input JSON data don’t have “rows” property and place the data directly as array. In the case you should use

    root: function (obj) { return obj; }
    

    inside of jsonReader. Moreover the setting strNbr: "0" is wrong. It should be id: "strNbr" instead.

    It’s very important additionally to use rowNum with some large enough value as the default value 25 (see the documentation). If you don’t do this jqGrid will display only the 25 first row of data. It’s not what you want.

    Other important options which I strictly recommend you to use are: gridview: true, autoencode: true. The option height: "auto" is also very practical in the most scenarios. So the code should be about the following

    $("#fbDetailTable").jqGrid({
        url: "AVVD.json",
        datatype: "json",
        colNames: ["Store Number", "Order Number", "SKU number",
                   "Shipped Quantity", "Order Created Date"],
        colModel: [
            { name: "strNbr" },
            { name: "orderNbr" },
            { name: "skuNbr" },
            { name: "shpdQty" },
            { name: "ordCrtDt" }
        ],
        cmTemplate: { width: 120 },
        jsonReader: {
            repeatitems: false,
            id: "strNbr",
            root: function (obj) {
                return obj;
            }
        },
        rowNum: 10000,
        gridview: true,
        autoencode: true,
        height: "auto",
        viewrecords: true,
        loadonce: true,
        caption: "Order Details"
    });
    

    You can additionally declare variables like

    var intTemplate = { sorttype: "integer", formatter: "integer" },
        dateTemplate = { sorttype: "date", formatter: "date" };
    

    and use templates (see the answer) and modify colModel to the following

    colModel: [
        { name: "strNbr", template: intTemplate },
        { name: "orderNbr", template: intTemplate },
        { name: "skuNbr", template: intTemplate },
        { name: "shpdQty", template: intTemplate },
        { name: "ordCrtDt", template: dateTemplate }
    ]
    

    The resulting demo you will see here:

    enter image description here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have issue wuth Firefox not displaying style text-decoration: line-through. I am using jqGrid
I'm a jQuery/jqGrid newbie... I've got my jqGrid selecting and displaying my data correctly.
Hello first time i used jqgrid but data not loaded in UI * html
I am using jQuery 1.6.1 and want to use JqGrid (a grid table plugin
I am using jqGrid to display the database table and loading the JQGrid using
With jqGrid if width of columns are not specified, they share the width of
If row is not selected and delete row command is issued in jqgrid, Please
I'm trying to set format for time in a jqGrid. It does not work.
I have a jqGrid that's working 100% except that it keeps displaying undefined in
How I can make all the columns of jqgrid not resizable? Currently I think

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.