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

SfCombobox drop down only one item tall

Thread ID:

Created:

Updated:

Platform:

Replies:

140748 Nov 5,2018 01:12 PM UTC Nov 7,2018 04:22 AM UTC Xamarin.Forms 3
loading
Tags: SfComboBox
Gyori Balazs
Asked On November 5, 2018 01:12 PM UTC

Hello,

With latest Xamarin.Froms and SfComboBox version I experience the following issue on Android (only on Android, on UWP not, IOS not tested):

I have an SfComboBox on my layout in the middle. So there is enough space below the combobox to show more drop down items. I create a list of 3 strings and add as DataSource. If I do not touch the list in my code any more (like it would be constant) then I see all 3 items in the drop down list when I press the combobox:

//myCombobox defined in xaml:

 <combobox:SfComboBox x:Name="myCombobox">

//Code behind:

List<string> myStrings = new List<string>(){"string1", "string2", "string3"};
myCombobox.DataSource = myStrings; //myCombobox defined in xaml


But If I create the List, then add a fourth element to it, then set the DataSource, then only one row is visible in the drop down windows. I can scroll the items in it, but the drop down window only one item (row) high - this makes it very uncomfortable to use.

List<string> myStrings = new List<string>(){"string1", "string2", "string3"};
myStrings.Add("string4");
myCombobox.DataSource = myStrings; //myCombobox defined in xaml

Can you reproduce this behaviour, or am I doing something wrong?

Regards,
Balázs

Paul Anderson S [Syncfusion]
Replied On November 6, 2018 07:02 AM UTC

Hi Gyori,

Greetings from Syncfusion.

We have checked the reported behaviour "Drop Down shows only one item in Android" in SfComboBox Control. We have prepared a sample with the SfComboBox at the middle of the layout and checked the behaviour. Unfortunately, we could not reproduce the same from our side. Please have the sample from the below link,

Sample Link: http://www.syncfusion.com/downloads/support/directtrac/general/ze/Sample_Project-125560017

Please check with the sample and if the sample differs from your layout. Please provide us the layout with which you could reproduce the behaviour which will be helpful for us to reproduce the same and provide an appropriate solution.

Please let us know if you have any concern.

Regards,
Paul Anderson

Gyori Balazs
Replied On November 6, 2018 11:28 AM UTC

Hello,

than you for checking it. I tried to modify your project to get this error again but with no success. So I went back to my real project, put back the sfComboBox again into the code and now it works. I have no idea why. I will keep my eye on this when testing for my next release and get back to you if I experience it again. Sorry for bothering you, it seems it was something only on my side.

Regards,

Balázs

Paul Anderson S [Syncfusion]
Replied On November 7, 2018 04:22 AM UTC

Hi Gyori, 
  
Thanks for the update. We are glad that your reported issue has been resolved. Please get in touch if you required further assistance. 
  
Regards, 
Paul Anderson 


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

;