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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T00:17:35+00:00 2026-06-01T00:17:35+00:00

I have a jqGrid in grouping mode that works fine on initial load. However,

  • 0

I have a jqGrid in grouping mode that works fine on initial load. However, when I clear that same grid, and copy data into that same grid, some of the rows in the grid are lost after the copy.

Here is the grid after initial load, before I clear it and copy in data:

GroupingBeforeCopy

Now, here is the same grid, after I clear it and copy in the same data:

enter image description here

Notice that I am missing the last row of data. In order to copy the data, I’m using setGridParam and then triggering a reloadGrid, like this:

function copyToGrid(jsonData) {

    var grid = $('myGrid');
    grid.jqGrid('clearGridData');

    grid.jqGrid('setGridParam', { datatype: 'local', data: jsonData });
    grid.trigger('reloadGrid');

}

I have verified that my jsonData does contain all the data that I want to copy into the grid. Also, I do not use addRowData because that does not work with grouping in jqGrid.

I have tried explicitly setting grouping parameters in the setGridParam call, like this:

grid.jqGrid('setGridParam', { datatype: 'local', data: jsonData, grouping: true });
grid.jqGrid('groupingGroupBy', columnName);

But, this does not work, either.

QUESTIONS:

Am I missing some more parameters in the setGridParam call?

Do I need to set other parameters on the grid?

Thanks very much for your help!

  • 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-01T00:17:37+00:00Added an answer on June 1, 2026 at 12:17 am

    Thanks to Oleg, once again, for his prompting to post more code, especially the grid options. I reviewed my grid definition, and found that I was using rowNum: -1. This rowNum option is apparently still broken. So, I changed it to rowNum: 10000, and now my copy function works fine. It seems strange that rowNum: -1 worked for my initial grid load, but not for copying data into the grid.

    Anyway, I have upvoted Oleg’s comment, and will upvote the SO post that I have linked in this answer.

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

Sidebar

Related Questions

I have a JqGrid that a i want to populate with Json data that
We have a jqGrid that shows the search box above the grid at all
I have a jqGrid that when I go into edit mode I need to
I have a jqGrid which works fine when displayed on a page on its
I have jqGrid 3.5 (full) mostly working. I have it retrieving data with the
Suppose I have the following (shortened for simplicity): jQuery(#grid).jqGrid({ ... ondblClickRow: function() { //
I have a project in ASP.NET MVC1 using VB.NET controlers and JqGrid. it works
I have a jqgrid with data loading from an xml stream (handled by django
I have a jqGrid that has add/edit dialogs with a form that's longer than
I have a jqGrid in an ASP.Net MVC. The grid is defined as: $(#list).jqGrid({

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.