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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T12:08:36+00:00 2026-06-13T12:08:36+00:00

Possible Duplicate: can’t add data to jqGrid from php within json format I am

  • 0

Possible Duplicate:
can’t add data to jqGrid from php within json format

I am trying to load the jgqgrid with data returned from Controller Action in asp.net. I am using MVC 3 with razor view engine. I can see in in fiddler as well as firebug that the ajax request made from jqGrid is returning data but the data is not getting displayed in jqgrid. I have looked at all the related psots and answers.
I made sure that locale file is specified before the jqgrid script file.
I have tried both GET and POST and changed the action attribute accordingly in controller.

<script type="text/javascript">
$(document).ready(function () {
    $("#list").jqGrid({
        datatype: 'json',
        url: '/Execution/GetAllExecutions/',
        jsonReader: { repeatitems: true },
        mtype: 'POST',
        rowList: [5, 10, 20, 30],
        viewrecords: true,
        colNames: ['OrderID'],
        colModel: [
            { name: 'OrderID', index: 'OrderID', align: 'right',key:true, width: 250}
        ],
        pager: '#pager',
        sortname: 'OrderID',
        sortorder: 'desc',
        height: "100%",
        width: "100%",                                   
        caption: 'Orders'
    });
});
</script>

<table id="list"><tr><td></td></tr></table>

<div id="pager"></div>
  • 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-13T12:08:37+00:00Added an answer on June 13, 2026 at 12:08 pm

    The format of the JSON response returned from the server don’t corresponds to jsonReader: { repeatitems: true } which you use. You should use something like the following

    jsonReader: {
        repeatitems: false,
        root: function (obj) { return obj; },
        page: function () { return 1; },
        total: function () { return 1; },
        records: function (obj) { return obj.length; }
    }
    

    Moreover would recommend you to add loadonce: true option because you seems don’t implemented the paging on the server side.

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

Sidebar

Related Questions

Possible Duplicate: Adding Core Data to existing iPhone project how can I add core
Possible Duplicate: How can I add resizable widgets in Qt Creator? I am using
Possible Duplicate: Can I run from command line program created by Eclipse? I am
Possible Duplicate: Can I comment a JSON file? We are using a .json file
Possible Duplicate: File to byte[] in Java I want to read data from file
Possible Duplicate: Can I get more than 1000 records from a DirectorySearcher in Asp.Net?
Possible Duplicate: PHP - add item to beginning of associative array have associative array:
Possible Duplicate: Extracting dollar amounts from existing sql data? I have a column in
Possible Duplicate: Javascript expression to define object’s property name? I'm trying to add objects
Possible Duplicate: How can I add a Trace() to every method call in C#?

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.