Increasing Ajax request timeout in ExtJs

Kabeer picture Kabeer · Oct 24, 2013 · Viewed 27.1k times · Source

Is there one single configuration in ExtJs library to increase Ajax request timeout?

I have tried following two configurations but neither helped:

Ext.override(Ext.data.Connection, {
    timeout: 60000
});

Ext.Ajax.timeout = 60000;

Answer

kevhender picture kevhender · Oct 24, 2013

I used the 2 that you mentioned, but also had to override these:

Ext.override(Ext.data.proxy.Ajax, { timeout: 60000 });
Ext.override(Ext.form.action.Action, { timeout: 60 });

Update for ExtJS 5:

It looks like you now need to set the Ext.Ajax timeout using setTimeout() for ExtJS 5+, instead of just setting the property:

Ext.Ajax.setTimeout(60000);