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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

SfAutoComplete auto expand

Thread ID:





147881 Sep 26,2019 06:16 PM UTC Oct 7,2019 06:25 AM UTC Xamarin.Android 9
Tags: SfAutoComplete
Asked On September 26, 2019 06:16 PM UTC

I have a SfAutoComplete control which is used to populate a list of names. The lookup and selection work with no issues. I am having a problem making the text box of SfAutoComplete auto expand when multiple items are added. I have enclosed the xaml code. I have tried different combination of "Verticaloptions" with no effect.

Attachment: autoexpand_f3af8fb3.zip

Muneesh Kumar G [Syncfusion]
Replied On September 27, 2019 09:48 AM UTC

Hi SP, 
Greetings from Syncfusion.  
We have analyzed your requirement “SfAutoComplete auto expand in token wrap mode” from our side. We have achieved your requirement using the EnableAutoSize support. We have prepared the simple sample based on your requirement. Please try the attached below sample and let us know if you have concern on this. 
Code Snippet: 
<autocomplete:SfAutoComplete x:Name="autoComplete" 
                <ListCollection:List x:TypeArguments="x:String"> 
                    <x:String>United Arab Emirates</x:String> 
                    <x:String>United Kingdom</x:String> 
                    <x:String>United States</x:String> 
Sample Link: 
Please let us know if you have any other queries.  
Muneesh Kumar G. 

Replied On September 27, 2019 09:39 PM UTC

Thanks! Using the beta version worked. But the SfListView in the second layout does not contract when the top layout expands. The code is the same as the one that I had sent earlier.

Muneesh Kumar G [Syncfusion]
Replied On September 30, 2019 12:48 PM UTC

Hi SP, 
We have checked the reported issue in SfAutoComplete and SfListView. We are not clear with your scenario. We have attached the sample and video for the same. 
Sample Link: 
Video Link: 
Please check with the sample and if the issue mentioned occurs in different scenario. Please modify the sample with the issue reproducing sample and also provide the video for the reproducing issue which will be helpful for us to analyze further and provide an appropriate solution. 
Muneesh Kumar G.   

Replied On October 1, 2019 07:05 PM UTC

Hi Muneesh,
I am unable to run the sample you provided. It seems like files are missing.
I have enclosed a screenshot to explain what happens. I have also enclosed the xaml code.

Attachment: listviewautocompletexaml_a93bddcd.zip

Kanimozhi Gunasekaran [Syncfusion]
Replied On October 2, 2019 09:18 AM UTC

Hi SP,

Thanks for your update.

We have checked the reported issue "SfListView in the second layout does not contract when the top layout expands" in the provided code example. In which you have set height for SfAutoComplete and it's parent control. Due to that reported issue occurred. Now we have set auto height for control parent to solve this issue. Please find the modified sample from the below link.

Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/AutoSizing_2-505403945.zip

Please let us know if you have any concern on this.

Kanimozhi G.

Replied On October 2, 2019 03:56 PM UTC

Please check enclosed image. This is from the sample that you had provided. Once you add a certain # of items, there is an overlap.

Attachment: overlap_8c2aea1a.zip

Muneesh Kumar G [Syncfusion]
Replied On October 3, 2019 12:55 PM UTC

Hi SP, 
Greetings from Syncfusion.  
We have checked the reported issue "ComboBox doesn't layout with listView control" from our side and found it occurs due to Absolute layout. We have replaced the AutoComplete with Xamarin.Forms Button and increased it's height dynamically in a button click. 
The same issue occurred while increasing button control height when parent layout is Absolute layout.  
So, we have modified that layout by using Grid to solve this issue. Please find the sample from the below link. 
Please let us know if you have any other query. 
Muneesh Kumar G.  

Replied On October 4, 2019 04:03 PM UTC

Thanks, that solved the issue.

Hemalatha Marikumar [Syncfusion]
Replied On October 7, 2019 06:25 AM UTC

Hi SP, 
We are glad to know that the given solution works.  
Please let us know if you need any further assistance. 
Hemalatha M. 


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