I have a grid with remote sorting and paging. I override the .ui-iggrid-modifiedrecord style on the view to show the dirty rows with a different style.
Also I do a $("#MfrGCGrid").igGrid("commit"); on the iggridupdatingdatadirty event, but do not save updates to the database. The updates are saved to the database only when an external Save Changes button is clicked by calling the $("#MfrGCGrid").igGrid("saveChanges");
The problem I have here is, I cannot get the updated row styles to persist. As soon as the iterator page changes or grid is sorted, the data is committed to the grid, and the dirty row styles are lost. I need the styles to persist untill I click the external Save Changes button.
Any help appreciated.
Hello,
Based on functionality you provided, I would recommend you to set autoCommit property of the grid to false as shown below:
autoCommit : false
Refer to the API on the below link:
<https://www.igniteui.com/help/api/2019.1/ui.iggrid>
You need to save changes in the grid in the button click event. The commit function will commit changes and the uncommited data styles will be lost.
I hope this helps.
I am just following up to see if you need any further assistance with this matter.
That worked fine. Thanks!