html:
<ejs-combobox #combobox
id='comboboxid'
[dataSource]="datas"
[fields]="fields"
[attr.maxlength]='16'
[showClearButton]='true'
[(value)]='value'
[enabled]="true"
[readonly]="false"
[enablePersistence]="true"
[allowFiltering]='true'
(filtering)='onFiltering($event)'
(beforeOpen)='onbeforeOpen($event)'>
<ng-template #itemTemplate let-data>
<div class="div">
<div class="first">{{data['VoucherNo']}}</div>
</div>
</ng-template>
</ejs-combobox>
When input the value, it will call onFiltering:
public onFiltering: EmitType<object> = (e: FilteringEventArgs) => {
this.value = e.text;
this.controlDataService.getdatalist(40010, 0, '', this.filterManager, 'VoucherNo', "", this.buildFilter(this.value), 1).subscribe((data: any) => {
if (data != undefined && data.List) {
this.datas = JSON.parse(data.List);
e.updateData(this.datas);
this.combobox.dataBind();
}
})
};
the popup cannot hide
Error:
TypeError: Cannot read property 'querySelector' of null
at FormBase.hidePopup (:8100/vendor.js:164242)
at FormBase.onDocumentClick (:8100/vendor.js:158692)
at ZoneDelegate.invokeTask (:8100/polyfills.js:3505)
at Object.onInvokeTask (:8100/vendor.js:75769)
at ZoneDelegate.invokeTask (:8100/polyfills.js:3504)
at Zone.runTask (:8100/polyfills.js:3273)
at ZoneTask.invokeTask [as invoke] (:8100/polyfills.js:3586)
at invokeTask (:8100/polyfills.js:4727)
at HTMLDocument.globalZoneAwareCallback (:8100/polyfills.js:4764)
Attachment:
home_393108c.zip