Search code examples
ajaxextjs4timeout

Increasing Ajax request timeout in ExtJs


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;

Solution

  • 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);