RadAjaxManager synchronous ajaxRequest

2 posts, 0 answers
  1. cayates
    cayates avatar
    71 posts
    Member since:
    Feb 2007

    Posted 29 Oct 2009 Link to this post


    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?


  2. Iana Tsolova
    Iana Tsolova avatar
    3388 posts

    Posted 03 Nov 2009 Link to this post

    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.

    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.
Back to Top