简体   繁体   中英

Abort an ext js grid store ajax call

I need to abort a EXT JS store load (which is a grid panel store using an ajax call).

I am using Ext JS 3.4

I have tried the following.

Ext.Ajax.abort(store.proxy.activeRequest);
delete store.proxy.activeRequest;

This can be solved by giving a condition,

var activeRequest = store.proxy.activeRequest;

if (typeof activeRequest.read != 'undefined') 
{ 
    Ext.Ajax.abort(activeRequest.read); 
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM