I need to mark certain rows as dirty in order to catch them using igGrid("pendingTransactions"). Is it possible?
Hello,
I'm just following up to see if you need any further assistance with this issue. If so please let me know.
Hello Michel,
You can use the _addTransaction() method to add elements to the pendingTransactions array:
ds = $("#grid").data().igGrid.dataSource;
var rowObject = $("#grid").igGrid("findRecordByKey", 4);
ds._addTransaction(rowObject);
or
you can programmatically update a row with the same values using the update method. The method will also create a transaction and updates the UI, so you will find this row in the pendingTransactions array afterwards:
$("#grid").igGridUpdating("updateRow", 4, rowObject);
However I must note that I do not see why would you need to do this. If you clarify your scenario we can suggest a better approach if such exists.