ajaxRequestWithTarget synchronously?

3 posts, 1 answers
  1. Krzysztof
    Krzysztof avatar
    2 posts
    Member since:
    Jan 2012

    Posted 26 Feb 2012 Link to this post

    Hi, I'm using 'ajaxRequestWithTarget' method of RadAjaxPanel.
    And it is asynchronously. Before the request is finished I would like to disable any action on client side.

    It seems that update of RadAjaxPanel is performed asynchronously, is it possible to make it synchronous?
    So for example I call 'ajaxRequestWithTarget' in the onclick event (client side event) of button. It looks like this event is finished before  ajax request is done completely.

    I know that there are events like:
    ClientEvents-OnResponseEnd="OnResponseEnd"
    ClientEvents-OnRequestStart="OnRequestStart"

    So I could use them to disable this button after requestStart and before requestEnd, but this is additional work.
    The simple question is: Can 'ajaxRequestWithTarget' be synchronous ?

    Hope I described it good.
    Regards.
    Chris.
  2. Answer
    Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 29 Feb 2012 Link to this post

    Hi Krzysztof,

    Note that AJAX in an acronym for Asynchronous JavaScript and XML and this a technique for creating asynchronous requests to the server in a web application. So there is no possibility to make that kind of requests synchronous. In order to perform synchronous requests to the server you could just do not add the mentioned controls in any ajax settings so they perform regular postbacks instead of Ajax requests.


    Kind regards,
    Maria Ilieva
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. Krzysztof
    Krzysztof avatar
    2 posts
    Member since:
    Jan 2012

    Posted 29 Feb 2012 Link to this post

    ok, thanks Maria.
    I will just try to handle my needs by using:
    ClientEvents-OnResponseEnd="OnResponseEnd"
    ClientEvents-OnRequestStart="OnRequestStart"


    Regards.
    Chris
Back to Top