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

  • SEARCH
  • Home
  • 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 3227784
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T16:36:55+00:00 2026-05-17T16:36:55+00:00

I have all the required javascript included, and the proper locale (at least, I

  • 0

I have all the required javascript included, and the proper locale (at least, I think):

 <script type="text/javascript" src="http://localhost/Web/Scripts/jqgrid/js/jquery.jqGrid.min.js"></script>
 <script type="text/javascript" src="http://localhost/Web/Scripts/jqgrid/js/i18n/grid.locale-en.js"></script>

Here’s the javascript:

<script type="text/javascript">
    jQuery(document).ready(function() {
        //var url = 'http://' + window.location.hostname + '/Web/Service/Kpi/MonthlyGrid?orgName=' + orgName + '&month=3';
        var url = 'http://' + window.location.hostname + '/Web/Service/Kpi/MonthlyGrid';
        console.log(url);
        $.getJSON(url,
                    function(data) { console.log(data); });
        jQuery("#list").jqGrid({
            url: url,
            datatype: 'json',
            mtype: 'GET',
            colNames: ['ID','SITE_TYPE_ID', 'ORG_UNIT_ID', 'SITE_ID', 'AREA_ID', 'MONTH', 'YEAR', 'VALUE', 'IS_UNRELIABLE', 'CALCULATED_ON'],
            colModel: [
            { name: 'ID', index: 'ID', width: 40, align: 'left' },
          { name: 'SITE_TYPE_ID', index: 'SITE_TYPE_ID', width: 40, align: 'left' },
          { name: 'ORG_UNIT_ID', index: 'ORG_UNIT_ID', width: 40, align: 'left' },
          { name: 'SITE_ID', index: 'SITE_ID', width: 40, align: 'left' },
          { name: 'AREA_ID', index: 'AREA_ID', width: 40, align: 'left' },
          { name: 'MONTH', index: 'MONTH', width: 40, align: 'left' },
          { name: 'YEAR', index: 'YEAR', width: 40, align: 'left' },
          { name: 'VALUE', index: 'VALUE', width: 40, align: 'left' },
          { name: 'IS_UNRELIABLE', index: 'IS_UNRELIABLE', width: 40, align: 'left' },
          { name: 'CALCULATED_ON', index: 'CALCULATED_ON', width: 40, align: 'left'}],
            pager: jQuery('#pager'),
            rowNum: 10,
            rowList: [5, 10, 20, 50],
            sortname: 'ID',
            sortorder: "desc",
            viewrecords: true,
            imgpath: '/scripts/themes/coffee/images',
            caption: 'My first grid'
        });
    }); 
</script>

And lastly, the data returned from the URL:

{"page":1,"total":1,"records":6,"rows":
[{"id":"8F4CEED3-628E-9EE7-E040-000A3E0034B3","cell":["8F4CEED3-628E-9EE7-E040-000A3E0034B3","111","","","","3","2010","0.001597","1","9/16/2010 11:29:13 AM"]},
{"id":"8F4CEED3-628F-9EE7-E040-000A3E0034B3","cell":["8F4CEED3-628F-9EE7-E040-000A3E0034B3","","","","","3","2010","0.001597","1","9/16/2010 11:29:13 AM"]},
{"id":"8F4CEED3-6337-9EE7-E040-000A3E0034B3","cell":["8F4CEED3-6337-9EE7-E040-000A3E0034B3","111","","","","3","2010","0.013223","1","9/16/2010 11:29:07 AM"]},
{"id":"8F4CEED3-6338-9EE7-E040-000A3E0034B3","cell":["8F4CEED3-6338-9EE7-E040-000A3E0034B3","","","","","3","2010","0.013223","1","9/16/2010 11:29:08 AM"]},
{"id":"8F4CEED3-63E0-9EE7-E040-000A3E0034B3","cell":["8F4CEED3-63E0-9EE7-E040-000A3E0034B3","111","","","","3","2010","0.008352","1","9/16/2010 11:29:17 AM"]},
{"id":"8F4CEED3-63E1-9EE7-E040-000A3E0034B3","cell":["8F4CEED3-63E1-9EE7-E040-000A3E0034B3","","","","","3","2010","0.008352","1","9/16/2010 11:29:17 AM"]}]}

Where have I gone wrong?

  • 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-17T16:36:55+00:00Added an answer on May 17, 2026 at 4:36 pm

    It seems the error is the order of js files. You have to include grid.locale-en.js before jquery.jqGrid.min.js. With the correct order of the JavaScript files your grid can be displayed as following. (I changed only width of some columns and remove deprecated imgpath parameter).

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

Sidebar

Related Questions

I have this script: <script type='text/javascript' src='js/jquery-1.4.4.mi.js'></script> <script type='text/javascript'> $('.filterMonth').change(function(){ alert('ijijiji'); $.ajax({ url: 'ajax/filterMandays.php',
I want to run Dojo/Dijit with the Google CDN: <script type=text/javascript src=http://ajax.googleapis.com/ajax/libs/dojo/1.3.2/dojo/dojo.xd.js> </script> I've
I am making an iPhone game. I have all the required app sizes except
I have a simple HTML-page with a UTF-8 encoded link. <html> <head> <meta http-equiv="content-type"
We have several fairly large JavaScript files embedded into a single script resources DLL.
I have applet embedded in http page. Applet is signed (as all jars which
I have to say, I am not an expert with Javascript dates.. at all!
i have many textboxes on a form and all textboxes require to have a
I have three different configurations on my project, all three do not require all
I have an intermediary class extending System.Web.UI.Page for all of my pages that require

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.