Abort an ext js grid store ajax call

天涯浪子 提交于 2019-12-06 12:39:00

问题


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;

回答1:


This can be solved by giving a condition,

var activeRequest = store.proxy.activeRequest;

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


来源:https://stackoverflow.com/questions/36590865/abort-an-ext-js-grid-store-ajax-call

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!