I have some javascript which calls the "updateItem" method to update an edited row in my radgrid.
The updateItem method works fine except for when I call another AJAX grid method right after it such as "editItem" (for a different row).
It appears that the two asynchronous calls are colliding with each other with the second call causing the first one to never successfully complete.
Is there a way to call "updateItem" in a synchronous manner? Or is there a way to capture an event on the client in javscript when the updateItem method finishes so that I can call my second AJAX method thereby eliminating the collision?
My workaround right now is to call updateItem and then set a timeout to make the second AJAX call. This works ok over a reliable connection because by the time the timeout calls the second method the first one has "almost always" finished. Clearly though it would be better to not call the second until I know for a fact the first one ran successfully.
Any thoughts?
The updateItem method works fine except for when I call another AJAX grid method right after it such as "editItem" (for a different row).
It appears that the two asynchronous calls are colliding with each other with the second call causing the first one to never successfully complete.
Is there a way to call "updateItem" in a synchronous manner? Or is there a way to capture an event on the client in javscript when the updateItem method finishes so that I can call my second AJAX method thereby eliminating the collision?
My workaround right now is to call updateItem and then set a timeout to make the second AJAX call. This works ok over a reliable connection because by the time the timeout calls the second method the first one has "almost always" finished. Clearly though it would be better to not call the second until I know for a fact the first one ran successfully.
Any thoughts?