We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

how to make popup for dropdown stay without disapearing even on clicling outside

how to make popup for dropdown stay without disapearing even on clicling outside
Thanks in Advance 
Regards
Thowbik

1 Reply

PO Prince Oliver Syncfusion Team June 17, 2019 05:31 AM

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 


Loader.
Live Chat Icon For mobile
Up arrow icon