Hi Thowbik,
Thank you for contacting us.
You can use the close event in the control and set the args.cancel as true to prevent the popup from closing. Kindly refer to the following code.
[app.component.html]
<ejs-dropdownlist id='games' #sample1 [dataSource]='sportsData' [fields]='localFields' [placeholder]='localWaterMark' (close)="onClose($event)" [popupHeight]='height'></ejs-dropdownlist> |
[app.component.ts]
public onClose = (e) => {
e.cancel = true;
} |
Let us know if you need any further assistance on this.
Regards,
Prince