Hi,
I have problem when I have to update row by program by:
$(grid).igGridUpdating("updateRow", rowId, obj);
When I update same row second time, I am losing pending transactions for this row. On grid auto commit is set to false and aggregate transaction is set to true.
I am attaching example where I am able to reproduce this issue. I found this example in other thread and I updated it slightly to demonstrate my problem:
1) Enter into Tax field some value => all 3 rows are updated, there are 3 pending transactions
2) Change value in Tax field to different value => all 3 rows are updated, there are 0 pending transactions
The question is why there are no pending transactions when rows are updated for second time? (When I try to commit and save changes in grid, I'll get nothing on server side because of this and I was able to debug it to this point).
Could you please check attached example?
Hello rajesh,
One of our developers has come back with the following information for this issue.
By obtaining the record from the DataSource's data collection and updating it prior to calling "updateRow" the user kills the grid's ability to determine what's changed and the transactions are then rejected.
The record passed to "updateRow" can be created or it can be copied from the grid's one but it shouldn't be updated directly for the transactions mechanism to work. As a sample the following works as expected:
for(var i = 0; i < data.length; i++) { row = data[i]; //row.Tax = ui.value; gridUpdating.updateRow(data[i].ProductID, $.extend(true, {}, row, { Tax: ui.value }));}
Based on this, as long as you do not directly edit the row object, the grid can keep track of its transactions. Our developer suggested using jQuery's extend method to extend the current row's data to a new object along with the user's changes.
Hi Team,
Did you resolve this issue?
Hello Adam Kopriva,
I have created a support case for you with an ID of CAS-136064-R6M3D8. The matter has been determined to be a development issue and has been logged in our tracking system with ID: 170964.
I will leave this case open and update you with any new information. You can view the status of the development issue connected to this case by going to the “Account” tab on our website, selecting "My Support Activity" and then this support case will be listed there. Then, you may select the "Development Issues" tab to view details of this development issue.
Please let me know if you have any questions.