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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:

Created:

Updated:

Platform:

Replies:

145272 Jun 14,2019 02:18 PM UTC Jun 17,2019 10:31 AM UTC Angular - EJ 2 1
loading
Tags: DropDownList
thowfik
Asked On June 14, 2019 02:18 PM UTC

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

Prince Oliver [Syncfusion]
Replied On June 17, 2019 10:31 AM UTC

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 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon