View Full Version : [CLOSED] Change the timeout globally

Jun 26, 2012, 6:28 PM

Jun 26, 2012, 9:47 PM

The following sets up the AJAX timeout golbally:

Ext.Ajax.timeout = 120000;
Ext.net.DirectEvent.timeout = 120000;

You can just place that code into a page <head>.

Regarding Store. The approach above will set up the timeout for the Store AJAX as well. To set up a custom timeout, please use the Timeout property of the AjaxProxy.

Jun 26, 2012, 9:51 PM
I have not understood what you mean "Store AJAX". Could you explain better?

Jun 26, 2012, 10:05 PM
Well, I meant any AJAX requests initiated by the Store/Proxy pair.

For example, if you set up the AjaxProxy with some Url, that proxy will initiate AJAX requests to load a data from the defined Url. AjaxProxy uses the Ext.Ajax. So, the following setting

Ext.Ajax.timeout = 120000;
will be used.

The same for the saving AJAX requests of the AjaxProxy.

Jun 27, 2012, 12:02 PM
Understood, thank you Daniil, please mark it as closed.

Nov 26, 2013, 9:13 AM
Hi : We are trying to implement the above settings in the C# code behind (Ext.Net 2.x) but getting the following errors:


We also have include code: using Ext.Net;
What are we missing? We tried in the markup <head>, but also got errors. Where exactly does this code go? :

Ext.Ajax.timeout = 120000;
Ext.net.DirectEvent.timeout = 120000;

Could you give a quick code sample of how to implement this code? Please assist, thanks...

Nov 26, 2013, 12:33 PM
It is JavaScript. It should be put into a page's <head> wrapped in a <script> tag.

<head runat="server">
<title>Ext.NET v2 Example</title>

<script type="text/javascript">
Ext.Ajax.timeout = 120000;
Ext.net.DirectEvent.timeout = 120000;

Feb 04, 2014, 8:48 AM
We added the AjaxTimeout global property.