This is a migrated thread and some comments may be shown as answers.
ajaxRequestWithTarget synchronously?
2 Answers 41 Views
This is a migrated thread and some comments may be shown as answers.
Krzysztof
Top achievements
Rank 1
Krzysztof asked on 26 Feb 2012, 09:28 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Maria Ilieva
Telerik team
answered on 29 Feb 2012, 02:01 PM
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.
0
Krzysztof
Top achievements
Rank 1
answered on 29 Feb 2012, 03:25 PM
ok, thanks Maria.
I will just try to handle my needs by using:
ClientEvents-OnResponseEnd="OnResponseEnd"
ClientEvents-OnRequestStart="OnRequestStart"


Regards.
Chris
Tags
Ajax
Asked by
Krzysztof
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Krzysztof
Top achievements
Rank 1
Share this question
or