Hi,
In this Post am going to Explain about How to Override the Extjs Data store Ajax Proxy timeout.
In One of My Project for Fetching the data is taking more than 40 Seconds.
But before loading it into the Grid the Extjs 4 Store Ajax Proxy is timeOut at 30 Seconds.
I was trying to Overcome this Issue while Increasing timeOut of Ajax Proxy in Ext.data.Store.
 
In this Post am going to Explain about How to Override the Extjs Data store Ajax Proxy timeout.
In One of My Project for Fetching the data is taking more than 40 Seconds.
But before loading it into the Grid the Extjs 4 Store Ajax Proxy is timeOut at 30 Seconds.
I was trying to Overcome this Issue while Increasing timeOut of Ajax Proxy in Ext.data.Store.
 Normally In Extjs 4 the Proxy timeOut is 30sec default, we can Increase by Adding Config timeout 
proxy: {
        type: 'ajax',
       
timeout: 60000
By Using this Config  We can Increase the timeout of  One ajax Proxy on  data Store .
Instead of adding timeout Config  in all stores,  we can override the timeout of data.proxy.Ajax.
Ext.override(Ext.data.proxy.Ajax, { timeout: 60000 });
 This was helpful for me becoz i wanted to Increase timeout Globally across my application.
version info Extjs 4.2
No comments:
Post a Comment