Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
95
igGrid Deleting a record from the Grid
posted

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