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 6563727
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:53:00+00:00 2026-05-25T13:53:00+00:00

I just start using jqgrid, but when I try the most simple example (loading

  • 0

I just start using jqgrid, but when I try the most simple example (loading JSON data), it is not working (no row added on tbody)

I have load these file in head section

<link rel="stylesheet" type="text/css" href="http://192.168.3.9/wavinet2-permana/application/themes/default/css/jqueryui/jquery-ui-1.8.8.custom.css">

<script src="http://192.168.3.9/wavinet2-permana/application/themes/default/js/jquery-1.4.4.min.js" type="text/javascript"></script>

<script src="http://192.168.3.9/wavinet2-permana/application/themes/default/js/jquery-ui-1.8.8.custom.min.js" type="text/javascript"></script>

<link rel="stylesheet" type="text/css" href="/wavinet2-permana/application/assets/css/jqgrid/ui.jqgrid.css">

<script src="/wavinet2-permana/application/assets/js/jqgrid/i18n/grid.locale-id.js" type="text/javascript"></script>

<script src="/wavinet2-permana/application/assets/js/jqgrid/jquery.jqGrid.min.js" type="text/javascript"></script>

And I have the javascript to load and config jqgrid

<script type="text/javascript">
$('#list2').jqGrid({
url: SITE_URL+'/account/test/jqgrid_ajax',
dataType: 'json',
mtype: 'GET',
colNames: ['Username', 'Nama Person'],
colModel: [
{name:'username', index: 'username', width:200, key:true},
{name:'nama_person', index: 'nama_person', width:200}
],
rowNum: 10,
rowList: [10, 20, 30],
pager: '#pager2',
sortname: 'username',
sortorder: 'ASC',
caption: 'Account Example',
viewrecords: true,
jsonReader: {repeatitems: false}
});
$('#list2').jqGrid('navGrid','#pager2',{edit:false,add:false,del:false}); 
</script>

body

<table id="list2" width="100%"></table>
<div id="pager2"></div>

JSON response

{
   "page":"1",
   "total":"2",
   "records":"13",
   "rows":[
      {
         "id":"Oke1",
         "cell":[
            "Oke1",
            "Deh"
         ]
      },
      {
         "id":"Oke2",
         "cell":[
            "Oke2",
            "Deh"
         ]
      },
      {
         "id":"Oke3",
         "cell":[
            "Oke3",
            "Deh"
         ]
      },
      {
         "id":"Oke4",
         "cell":[
            "Oke4",
            "Deh"
         ]
      },
      {
         "id":"Oke5",
         "cell":[
            "Oke5",
            "Deh"
         ]
      },
      {
         "id":"Oke6",
         "cell":[
            "Oke6",
            "Deh"
         ]
      },
      {
         "id":"Oke7",
         "cell":[
            "Oke7",
            "Deh"
         ]
      },
      {
         "id":"Oke8",
         "cell":[
            "Oke8",
            "Deh"
         ]
      },
      {
         "id":"Oke9",
         "cell":[
            "Oke9",
            "Deh"
         ]
      },
      {
         "id":"Oke10",
         "cell":[
            "Oke10",
            "Deh"
         ]
      }
   ]
}

I try to open in Firefox Windows, Firefox Ubuntu, and Internet Explorer 8, it returns the same result. The grid is rendered but there are no data on tbody

  • 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-05-25T13:53:00+00:00Added an answer on May 25, 2026 at 1:53 pm

    I see two small errors in your code:

    • you should use datatype: 'json' instead of dataType: 'json' which you probably know from jQuery.ajax.
    • you should remove jsonReader: {repeatitems: false} parameter.

    See the demo.

    I recommend you additionally to use jQuery 1.6.2 instead of jQuery 1.4.4 which is now already “retro” version. With the version 1.6.3 you should be a little more sensible (see here). In the same way jQuery UI 1.8.8 is also an old version. I recommend you to use jQuery UI 1.8.16.

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

Sidebar

Related Questions

Im trying to stop using TcpTrace and start working with Fiddler. But i just
I'm just learning how to do things, and want to start using some sort
So here I am just about to start a big project using LINQ to
Apache just fails to start with NO error message when we try to reboot
I'm working on a project which is just about to start, and since I
Right now we just use something like this stopWatch.Start(); try { method(); } finally
My Rails app is starting to need complicated queries. Should I just start using
How do I fix a broken debugger, one that just won't start, in EclipseME
Before I start with the real question, let me just say that I might
I'm just trying to time a piece of code. The pseudocode looks like: start

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.