Hi,
I have an igGrid with deletion enabled. I have a sql table at the backend which is synced with the grid using entity Framework. I have set autoCommit to false.
Now I have 2 kinds of delete records
1. Deleting rows already saved to the database.
2. Deleting rows not committed and not saved to database.
I'm having problems with the second case.
In the SaveChanges controller, I get the transactions and I delete from the dbcontext. In this both the above types of records come in. The first kind of delete record are successfully deleted since the context is able to find the record.. The delete fails for the second type of record. How do i delete these records.
Regards,
Guru
Hello Guru,
In case that autoCommit is disabled, then you may call saveChanges with a success callback and error callback(if you want to catch the faulty edit): https://www.igniteui.com/help/api/2018.1/ui.iggrid#methods:saveChanges. In the success callback you should call a manual commit so that the change gets persisted in the local data source.
Please try this and let me know if you need further assistance.