Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Store load canceled after 30 seconds

I've problem with store load. Extjs cancel load after 30 seconds. Is there some parameters or something else to increase store load time?

Here is example of store:

  var store = Ext.create('Ext.data.Store', {
        model : 'store_model',
        proxy : {
            type : 'ajax',
            url : 'data/backend.php',              
            reader: {
                type: 'json',
                root: 'data'
            },
            writer: {
                type: 'json'
            }

        },          
        autoLoad : true
    });
like image 398
Samir Maksimov Avatar asked Oct 13 '25 08:10

Samir Maksimov


2 Answers

See here: http://docs.sencha.com/extjs/4.2.2/#!/api/Ext.Ajax

Ext.Ajax.timeout = 60000;

like image 140
Evan Trimboli Avatar answered Oct 16 '25 08:10

Evan Trimboli


This allows to change the timeout only for one store:

store.proxy.setTimeout(60000);

Tested in ExtJs 6.2

like image 35
Lorenz Meyer Avatar answered Oct 16 '25 07:10

Lorenz Meyer



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!