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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T20:23:59+00:00 2026-06-15T20:23:59+00:00

I have a jqgrid. I need to pull the json data from jqgrid after

  • 0

I have a jqgrid. I need to pull the json data from jqgrid after the client sorted the grid. Pulled json data should be the sorted version and not the original. How can I do this?

Here is my jqgrid source

jQuery("#myGrid").jqGrid({
    datastr: jsonData,
    datatype: 'jsonstring',
    jsonReader: { repeatitems: false, root: function(obj) { return obj; }},
    colNames: [ 'Column 1',
                'Column 2'],
    colModel: [
        { name: 'prop1',    index: 'prop1'},
        { name: 'prop2',    index: 'prop2'},

    ],
    headertitles: true,
    sortable: true,
    pginput: true,
    rownumbers: true,
    rowNum: 5,
    rowList: [5,20, 100, 10000],
    pager: '#pager',
    width:'600',
    height:'300',
    shrinkToFit:false,
    viewrecords: true,
    loadonce: true
});

Currently when I alert(jsonData) in the gridComplete it shows the original json data and not the sorted one.

  • 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-15T20:24:00+00:00Added an answer on June 15, 2026 at 8:24 pm

    For those who come across this problem, you can just take the data parameter passed to the loadComplete event of jqGrid. This data is the sorted version of the grid’s data source.

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

Sidebar

Related Questions

I have a grid using jqgrid . I need to store the some data
I need help with filtering rows from jqgrid. I have a grid with large
I have a problem where I need to display json data on a jqgrid.
I have problems after upgrading: jqGrid from 3.5.3 to 3.8.2 jquery from 1.3.2 to
I need to set some event handlers for jqGrid's edit events after the grid
In jqgrid we have long text getting from DB, but need to wrap while
I have a jqgrid from trirand (asp.net version) and cannot work out how to
I've got a jqGrid where I need to change the model after the data
I have a jqgrid, where it has a custom formatter to column1. I need
I have a case where I need to update a jqgrid based on some

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.