Hello Radzen team,
I am having some issues with saving a new row in inline edit grid. When a new row is added in an inline edit grid and if there's an error when saving this happens.
Clicked Add button-> Added values to the new row inserted
I had a error notification as there's a unique key error from database. After that the row becomes like this with no cancel button and only edit button showing with id as 0 even though it hasn't been saved to database.
If I click edit button and try to save changes again , it doesn't save. I tried with same data and also modified data that doesn't have errors.
I have to reload the grid to remove it. It looks like once the save button is clicked, the row is marked as edit only which will fail as id is 0.
I tried adding a grid reload and insert row with the unsaved data if error occurs in the create event handler but when I click save button it still goes into update row event handler instead of create row handler and there doesn't seem to be a flag to reset.
The same thing can be seen in Radzen demo also -
I want to retain the data in the new row so the user doesn't have to input everything from scratch. But also keep it as a new row until save succeeds or I reload the grid.
Can you please give me some pointers on how to get it done?