Thank you for the application - it showed me things that was unclear to me.
Could you please inform me how to react in the following scenario:
1. I add 2 new rows into the grid, where one has a product name that already exists - I press "Save changes".
2. Serverside I tjek for duplicate product names - if found I do not insert anything, but return the row(s) to the client that contain duplicate product names.
3. Clientside the rows that caused the "abort" are highlighted.
4. The user correct the names(or remove rows) and press "Save changes" again
5. All is good.
I try this serverside:
but clientside this code does not make much sense to me:
grid = $(
item = JSON.parse(e.responseText),
tr = grid.table.find(
+ item.ProductID +
e.reponseText contain the model that was sent down(filtered so only the duplicate name rows are returned).
clientside the "data-id"(on new rows) seem to be a temp guid that are not sent to the server - so how to find it again, I dont know.