我想在Extjs getFilter()完成时添加新行。哪个符号知道getFilter()是否完整?
我正在使用extjs 2.5版
_ID = selRec.data.ID;
_seletedIndex = App.grdVoucher.store.data.length > 0 ? idx : 0;
new Promise((resolve,reject)=>{
App.stoSeries.suspendEvents();
App.grdSeries.getFilterPlugin().clearFilters();
App.grdSeries.getFilterPlugin().getFilter('ID').setValue([_ID, ""]);
App.grdSeries.getFilterPlugin().getFilter('ID').setActive(true);
App.stoSeries.resumeEvents();
resolve()
}).then(x=>{
if (HQ.isInsert) {
var record = HQ.store.findRecord(App.stoSeries, _keySeries, ['']);
if (!record) {
HQ.store.insertBlank(App.stoSeries, _keySeries);
}
}
})
};