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?..
I am using jqgrid with clientArray option for editing;My grid is using paging; Will
Share
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:
});
and in the utility retainChangesOnPaging I have something like:
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?