Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Kendo grid duplicate records inserted

I have a kendo grid in inline editing mode. When I press "Add new item" button, new row is added and set to the edit mode. By pressing the "Update" button multiple time, I'm able to insert duplicate records into database.

Is there a possibility to disable Update button after the first click?

Also row selection on kendo grid is lost after insert is performed. Is that normal behavior?

like image 338
mez Avatar asked Mar 03 '26 15:03

mez


1 Answers

This would happen if you don't return the ID of the newly inserted records. The Kendo DataSource would treat them as new unless you return the id values. More info is available in the documentation.

like image 89
Atanas Korchev Avatar answered Mar 06 '26 03:03

Atanas Korchev



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!