I have a Grid (Html version) implemented with CRUD operations that work perfectly. The Grid is bounded to a remote service.
Am looking for a way to block the user from initiating multiple service requests for any of the CRUD operations until a service response, either successful or failure, is received for the first/original request. For example, if the user deleted a row, the service takes a few seconds until completing the request and returns response to the client. If during that time the user tries to delete another row, the Grid actually sends two requests, one for the first row and one for the second row, which causes exception on the service due to the way it's implemented (something related to the SQL database and record is being already deleted along with some other complex logic).
Is there a way to achieve this?
Thanks!
Am looking for a way to block the user from initiating multiple service requests for any of the CRUD operations until a service response, either successful or failure, is received for the first/original request. For example, if the user deleted a row, the service takes a few seconds until completing the request and returns response to the client. If during that time the user tries to delete another row, the Grid actually sends two requests, one for the first row and one for the second row, which causes exception on the service due to the way it's implemented (something related to the SQL database and record is being already deleted along with some other complex logic).
Is there a way to achieve this?
Thanks!