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

Popup with by text length in popup

Thread ID:

Created:

Updated:

Platform:

Replies:

144748 May 21,2019 05:50 AM UTC May 22,2019 07:15 AM UTC Angular - EJ 2 1
loading
Tags: AutoComplete
Unknown
Asked On May 21, 2019 05:50 AM UTC

Hello,

is there a possibility to set autocompletebox popup with by my text length in popup? I want it to be minimum width like my autocomplete box but if not all text is seen in pop - set it like text length.

Christopher Issac Sunder K [Syncfusion]
Replied On May 22, 2019 07:15 AM UTC

Dear Customer, 

Greetings from Syncfusion support. 

To resize the autocomplete popup based on text length, we need to set the popupWidth property to auto to achieve the behavior. Here is the code snippet, 

<ejs-autocomplete id='games' #sample [dataSource]='sportsData' [(value)]='value' [placeholder]='waterMark' [fields]='fields' [popupWidth]='width'></ejs-autocomplete> 
 
// set the width of the popup element 
public width: string = 'auto'; 


Please get back to us if you require any further assistance. 

Thanks,
Christo 


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