Hi Tony,
Great work, thanks a million…
I have a typical row edit situation:
You edit a line;
The server saves;
If the save is a success then update row timestamp with a new value;
If the save failed because the row got updated by another user/process
then restore the row with the new values and display a message.
The success server response:
{ “rowData” : { “timestamp”:”2009-07-25 16:27:39.860″ }}
The failure server response:
{ “jqGridMessage” : “The record has been changed by another process. No changes were saved.”,
“rowData” : { “long_name”:”Joe Black”, “timestamp”:”2009-01-06 12:00:01.987″ }}
I had a aftersave function defined at the 'editRow'.
Well it works fine but if the 'saveRow' can handle it even better and I don't have to do anything at 'editRow'.
So, I slightly modified the 'saveRow' function and its ajax call looks like this now:
$.ajax({ url: url,
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top