This is a migrated thread and some comments may be shown as answers.

Kendo grid seems to fire destroy event after create

2 Answers 43 Views
Grid
This is a migrated thread and some comments may be shown as answers.
dato
Top achievements
Rank 1
dato asked on 04 Jun 2020, 05:11 AM

Hello. I have a very weird issue with Kendo grid. After creating a new record the grid seems to firing a destroy event for some random records. it calls DELETE action on the server that modifies some rows in DB:(sets IsActive field to false, updates ModifyDate and some more rows). I am certain that the delete action is called because of these rows are updated as it is configured in the action. the rows that are being deleted (deactivated) are completely unrelated. has anyone had the similar issue or any ideas how to fix this?

I have attached couple photos. one shows the destroy event configuration, and another one shows database rows, the top ones are deactivated after create event of the bottom row. about 4 to 6 rows are deleted every time.

please let me know if you have some ideas. Thank you in advance

2 Answers, 1 is accepted

Sort by
0
dato
Top achievements
Rank 1
answered on 04 Jun 2020, 05:29 PM
Actually I found a problem. this project was not built by me from ground up, so the previous developer was calling e.sender.data().empty() method if create action returned exception. 
0
Nikolay
Telerik team
answered on 05 Jun 2020, 03:27 PM

Hello Dato,

Thank you for updating us on the case. This will definitely help others facing the same situation.

Please do not hesitate to contact us back if anything new arises.

Regards,
Nikolay
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
Grid
Asked by
dato
Top achievements
Rank 1
Answers by
dato
Top achievements
Rank 1
Nikolay
Telerik team
Share this question
or