我有讀取功能,我想確認參數值是否存在,如果不存在,取消讀取事件 。我如何取消閱讀內的ajax Call?kendo ui datasource取消從讀取功能中讀取
read: {
url: function (e) {
try {
//var OrgHeadQrtrID_PK = 0;
if (e.orgHeadQuarterIdPK == null)
**--not sure how to cancel this read**
return baseURL + "/GetOrgs";
} catch (e) {
console.error("Error occured in the read method of module " + moduleName);
console.trace();
}
}, // "/PutOrgSchool",