IsDropDownOpen Not Working On Android Only

I have a SfComboBox:

 <SfComboBox:SfComboBox

                x:Name="actionsComboBox"

                BackgroundColor="White"

                TextSize="8"

                IndicatorText="Actions...1"

                Text="Actions..."

                ShowBorder="true"

                SelectionChanged="comboBox_SelectionChanged"

                WidthRequest="300"

                HorizontalOptions="End"

                VerticalOptions="Fill"

                MaximumDropDownHeight="600"

                IsEditableMode="False"

                ShowClearButton="False"

                ShowSuggestionsOnFocus="True"

                SuggestionBoxPlacement="Top"

                DataSource="{Binding GridActionItemNames}"

                IsDropDownOpen="True"

                HeightRequest="40"

                IsVisible="{Binding ShowingGridActionsMenu}"

            />



Setting  actionsComboBox.IsDropDownOpen = true works for iOS but not on Android.  Any work-


10 Replies

SS Suganya Sethuraman Syncfusion Team June 24, 2021 08:58 AM UTC

Hi Jonah,

Greetings from Syncfusion.

We have analyzed the reported query. We have achieved your requirement by setting the IsDropDownOpen property to true in the OnAppearing override method, as shown in the code snippet below,

Code Snippet
 
        protected override void OnAppearing() 
        { 
            base.OnAppearing(); 
 
           comboBox.IsDropDownOpen = true; 
        } 

Please have the sample for your reference,


Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/SfComboBoxDropDown1097761297

Please check if the sample satisfies your requirement and let us know if you have any concerns.

Regards,
Suganya Sethuraman.
 



JC Jonah Coleman July 7, 2021 10:59 PM UTC

Your example does not work if the device is in landscape mode:

http://somup.com/crii39YikP

Tested with 19.2.46 also and same behavior.



SS Suganya Sethuraman Syncfusion Team July 8, 2021 11:20 AM UTC

Hi Jonah,

We have analyzed the reported issue and we have fixed the reported issue and please find the custom assemblies from below link.

Custom Assemblies: https://www.syncfusion.com/downloads/support/directtrac/general/ze/DropDownOpenAssembly-430920941

Please have a sample with custom assembly,

Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/ComboBox_DropDown-143847346

Assembly Version: 19.2.0.46

Since 19.2.0.46 is a weekly NuGet release, we are not able to generate patch in 19.2.0.46 version. We can generate patch only for Main release and SP1 release versions, so we have provided the custom assembly in 19.2.0.46.

Disclaimer:

Please note that we have created this patch for version 19.2.0.46 specifically to resolve the issue reported in this incident. If you have received other patches for the same version for other products, please apply all patches in the order received

Please refer the below link for how to apply custom assemblies.
 
https://www.syncfusion.com/kb/8279/how-to-apply-the-custom-assemblies-when-configured-the-project-with-syncfusion-nuget    

The fix for the reported issue will be included in our weekly NuGet release which will be available on July 20, 2021. We appreciate your patience until then.

Regards,
Suganya Sethuraman.
 



JC Jonah Coleman July 9, 2021 08:30 PM UTC

Thanks!




SS Suganya Sethuraman Syncfusion Team July 12, 2021 04:24 AM UTC

Hi Jonah,

Thanks for the update.

As we said earlier, we will include the fix in our weekly NuGet release which will be available on July 20, 2021. We appreciate your patience until then.

Regards,
Suganya Sethuraman.
 



SS Suganya Sethuraman Syncfusion Team July 20, 2021 12:11 PM UTC

Hi Jonah,

Thanks for your patience.

We have included the fix in our latest Weekly NuGet release v19.2.0.48 which is available for download (https://www.nuget.org/ ). We thank you for your support and appreciate your patience in waiting for this update. Please get in touch with us if you would require any further assistance.

Regards,
Suganya Sethuraman.
 



PP Paul Parkins November 12, 2021 10:34 AM UTC

Hi,

I am using 19.3.0.46 and I also find this property doesn't work as I would expect.


If I set it to true in my xaml, the combo is not dropped down when my page opens.

If I bind it to a boolean property on my page model, it does not open when my page model sets it to true.

The only way I have managed to get it to work is using the info in this post and controlling it in the code behind (not my preferred option). This would imply the fix you refer to in 19.2.0.46 has not worked? Also, even though I can drop it down from the code behind, the drop down is not lined up under my combobox (see image). It is possible that this is caused by use within a Rg.Plugins.Popup popup page?



Is there a way I can programmatically control IsDropDownOpen other than in OnAppearing() ?


thanks


Paul



SS Suganya Sethuraman Syncfusion Team November 15, 2021 12:12 PM UTC

Hi Paul,

Greetings from Syncfusion.

Currently we are validating on this, and we will provide the complete details on or before November 17, 2021. We appreciate your patience until then.

Regards,
Suganya Sethuraman.
 



SS Suganya Sethuraman Syncfusion Team November 18, 2021 02:33 PM UTC

Hi Paul,

We have analyzed the reported issue. We could be able to reproduce the same. Currently we are checking the possibility of resolving the issue at the sample level. We will update the complete details on or before November 23, 2021. We appreciate your patience until then.

Regards,
Suganya Sethuraman.
 



SS Suganya Sethuraman Syncfusion Team November 24, 2021 10:26 AM UTC

​Hi Paul,

We have analyzed your query.  We have achieved your requirement by using the following code snippet,

Code snippet
 
protected override void OnAppearing() 
{ 
    if (Device.RuntimePlatform == Device.Android) 
    { 
        Device.StartTimer(TimeSpan.FromSeconds(3), () => 
        { 
            autoComplete4.IsDropDownOpen = true; 
            return false; 
        }); 
    } 
 
    base.OnAppearing(); 
} 
 

Please have a sample for your reference,

Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/SfComboBoxOnAppear-1874644781

Please check if the sample satisfies your requirement and let us know if you have any concerns.

Regards,
Suganya Sethuraman.
 


Loader.
Up arrow icon