This is a migrated thread and some comments may be shown as answers.

RadAjaxManager synchronous ajaxRequest

1 Answer 53 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
cayates
Top achievements
Rank 1
cayates asked on 29 Oct 2009, 06:57 PM
Hello,

I have a RadAjaxManager that updates 5 RadGrids on one page.  When I call a Rebind ajaxRequest it rebinds each of the 5 RadGrids.  The problem I'm having is determining when all 5 grid's have finished rebinding and refreshing on the screen before my javascript code continues.

The RadAjaxManager's onResponseEnd gets called several times, I believe once for each RadGrid that has a change when it's rebound.

How can I call ajaxRequest and have it run synchronously so that my javascript code will not continue until each RadGrid has been refreshed?

Thanks,

Chris

1 Answer, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 03 Nov 2009, 04:01 PM
Hello cayates,

Thank you for contacting us and for your questions.

I am afraid you could hardly synchronize the ajax asynchronous postbacks. However, in order to achieve, you should invoke only one ajax request at a time. Then after the one request finishes, start the next one.
I am attaching a sample project illustrating the suggested approach.


Greetings,
Iana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Ajax
Asked by
cayates
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Share this question
or