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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T00:54:02+00:00 2026-05-28T00:54:02+00:00

I am using jqgrid with clientArray option for editing;My grid is using paging; Will

  • 0

I am using jqgrid with clientArray option for editing;My grid is using paging; Will the jqgrid getChangedCells method return the correct changed rows even after changing pages several times with a possibility of data from the server having changed?- for example if new rows are available from the server that will now appear in my grid if I page back;
Wont there be a rowId conflict – the new rowIds will be pointing to different rows from the ones before new data became available?
I guess I could always order my server data by the autoincrementing primary key?..

  • 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-28T00:54:03+00:00Added an answer on May 28, 2026 at 12:54 am

    found out today on experimenting; paging (server side) a jqgrid clears the result of getChangedCells; I had to create a utility function to store the getChangedCells array so that it persists across paging;
    Im doing this so I can submit all the changes separately
    In jqgrid options I have something like:

    ('#grid').jqgrid({
      ....
      cellEdit:true,
      cellSubmit:'clientArray',
      colModel: [ {...,editable:true,
                       dataInit:function(el){
                         el.autocomplete({...});
                       }...} ... ],
      afterSaveCell:function(){
                    $.retainChangesOnPaging();
                     }
      ....
    

    });

    and in the utility retainChangesOnPaging I have something like:

    (function(){
      var retainedChanges;
      retainedChanges = new Array();
      $.retainChangesOnPaging = function(){
        var changedCells = ('#grid').jqGrid('getChangedCells');
        // loop over changedCells array, removing duplicates if you want to...
          return  retainedChanges.push(/* this is inside the loop; push current value to array*/);
         ....
      }
       $.getRetainedChanges = function(){
         return retainedChanges;
       }
    })(jQuery);
    

    then when Im ready to submit all changes to server, I call $.getRetainedChanges
    Another question : is the way I used the retainChangesOnPaging correct? something seems wrong though the code works – can I make it better in any way? are my closures ok?

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

Sidebar

Related Questions

I'm using jqGrid's filterToolbar method to let users quick search/filter the grid data. I'm
I am having trouble constructing a jqGrid TreeGrid using local data. This method works
I'm using jqgrid in a project. And need to know how to return/set error
I am using jqgrid and using the inline editing mode and can't figure out
Hi I'm using jqgrid to show some information in a grid. But I have
I am using jqGrid and I don't want the grid to autoload. I only
I am using jqgrid 3.8. I have a grid which is having some editable
i am using Jqgrid http://trirand.com/blog its a very good grid solution, the linked one
I'm using jqgrid on clienside for a financial web app where rows get added
I'm using jqGrid with cell editing and a datepicker. All works well, except that

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.