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

Popup with by text length in popup

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.

1 Reply

CI Christopher Issac Sunder K Syncfusion Team 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 


Loader.
Up arrow icon