I've implemented a simple grid with popup editor templates. CRUD operations are implemented using AJAX calls.
Problem 1 - Duplicate records being created.
I create a first record and it is added fine. When I create a second record, the first one is duplicated (along with the second record being created). I have resolved this issue by setting the ID of the model on creation and returning to client.
Problem 2 - Multiple Delete calls
When I delete one record it works fine. When I delete a second record, two calls are made, this one and the previous one. As the previous record has already been deleted an exception is generated.
Problem 1 and 2 are both resolved if I refresh the browser after each operation. Is this a known issue? Is there a way to manually refresh the grid after each operation?
Problem 1 - Duplicate records being created.
I create a first record and it is added fine. When I create a second record, the first one is duplicated (along with the second record being created). I have resolved this issue by setting the ID of the model on creation and returning to client.
Problem 2 - Multiple Delete calls
When I delete one record it works fine. When I delete a second record, two calls are made, this one and the previous one. As the previous record has already been deleted an exception is generated.
Problem 1 and 2 are both resolved if I refresh the browser after each operation. Is this a known issue? Is there a way to manually refresh the grid after each operation?