I am trying to create a waiting popup for an ajax action within an ejDialog as a modal. However, every time the page loads, the waiting popup is already displayed.
i've tried the following:
- html: <ej-waitingpopup id="waitingpopup" [showOnInit]="false"></ej-waitingpopup>
- result: popup still shows on modal open
- html: <ej-waitingpopup id="waitingpopup" (create)="waitingpopup_create($event)"></ej-waitingpopup>
- ts: waitingpopup_create(e:any){
var targetID = "#pageBody"
var a = $("#waitingpopup").data("ejWaitingPopup");
a.model.showOnInit = false;
a.setModel({ appendTo: targetID, target: targetID, showOnInit: false });
a.hide();
}
- result: popup still shows on modal open
any help is appreciated. thanks.