Cannot hide combo box

Hi,


I was just wondering if we are able to hide sfCombobox's? I am populating a combo box depending on what a user selects from another field. It works fine but what I would like to do is hide it if there are no values? I am setting the IsVisible property to false if there are no values but it does not hide the combo box. I have even tried setting the IsVisible property to false when the page loads but even that does not seem to hide the combo box.


Any help would be greatly appreciated


7 Replies

SS Suganya Sethuraman Syncfusion Team March 24, 2022 02:53 PM UTC

Hi Jay,

Since we are unable to reproduce the issue “IsVisible is not working in SfComboBox”, We would like you to check the issue with the attached sample and let us know if it is reproduced. Else, please revert to us by modifying the sample based on your application and provide the replication procedure or the sample. It will be helpful for us to provide a better solution at the earliest.

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

Regards,
Suganya Sethuraman.
 
 



JA Jay March 29, 2022 11:37 AM UTC

Thank you very much for the reply. I had indeed set everything up correctly but your example has enabled me to find out what is causing the issue.


I have the combo box wrapped in an input layout on the page which then seems to stop the IsVisible property from working.

<inputLayout:SfTextInputLayout Style="{DynamicResource TextInputLayoutStyle}">

                    <combobox:SfComboBox

                        x:Name="PeriodPicker"

                        DataSource="{Binding Periods, Source={Reference IndicatorPicker}}"

                        IsVisible="{Binding ShowPeriods, Mode=TwoWay}"

                        SelectedItem="{Binding Period, Mode=TwoWay}"

                        Style="{StaticResource TextInputLayoutComboBoxStyle}"

                        VerticalOptions="CenterAndExpand"

                        Watermark="Period" />

                </inputLayout:SfTextInputLayout>


Do you know why this would be the case? If I remove the input layout it 



RS Ragul Subramani Syncfusion Team March 31, 2022 03:09 PM UTC

We can reproduce the reported problem “IsVisible is not working in SfComboBox in two-way binding mode when adding it as InputView of SfTextInputLayout” on our side. Currently, our development team validating it at our source level and update you with further details in 2 business days on or before April 4, 2022.



VR Vignesh Ramesh Syncfusion Team April 5, 2022 03:19 AM UTC

We have checked the reported problem IsVisible is not working in SfComboBox in two-way binding mode when adding it as an InputView of SfTextInputLayout in our source and confirmed it as a defect. But due to the feedback portal problem, we can’t be able to create a bug report for now. So, we will share you the feedback link for this bug once it is resolved.


We will include the fix in our upcoming weekly NuGet, which is expected to be rolled out on April 19, 2022.


Disclaimer: Inclusion of this solution in the weekly release may change due to other factors, including but not limited to QA checks and work reprioritization.



VR Vignesh Ramesh Syncfusion Team April 5, 2022 08:43 AM UTC

Please find the feedback link below. You can keep track of the bug through it.


https://www.syncfusion.com/feedback/33928


NOTE: The provided feedback link is private and you need to log in to view it.



ET Eswaran Thirugnanasambandam Syncfusion Team April 19, 2022 04:56 PM UTC

We have fixed the reported issue ”IsVisible is not working in SfComboBox in two-way binding mode when adding it as an InputView of SfTextInputLayout”. Please find the patch for this issue fix with the version of 20.1.0.47 version. Can you please confirm the reported issue was resolved? And we will include this in our weekly NuGet release which is expected to be rolled out on April 26, 2022.


The patch and NuGet for the fix can be downloaded from the below link. 


Please find the patch setup from below location:

https://syncfusion.com/Installs/support/patch/20.1.0.47/1275769/F173862/SyncfusionPatch_20.1.0.47_1275769_4192022113933020_F173862.exe

(OR)


Please find the patch assemblies alone from below location:

https://syncfusion.com/Installs/support/patch/20.1.0.47/1275769/F173862/SyncfusionPatch_20.1.0.47_1275769_4192022113933020_F173862.zip

(OR)


Please find the NuGet from below location:        

https://syncfusion.com/Installs/support/patch/20.1.0.47/1275769/F173862/SyncfusionNuget_20.1.0.47_1275769_4192022113933020_F173862.zip


Assembly Version: v20.1.0.47


Disclaimer:

Please note that we have created this patch for version 20.1.0.47 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.


Note: Please clear the NuGet cache, before using the latest one.

https://www.syncfusion.com/kb/6987/how-to-clear-nuget-cache    


The fix for the reported issue will be included in our upcoming weekly NuGet release which is expected to be rolled out on April 26, 2022. We appreciate your patience until then.



ET Eswaran Thirugnanasambandam Syncfusion Team April 27, 2022 08:38 AM UTC

We have fixed the reported issue IsVisible is not working in SfComboBox in two-way binding mode when adding it as an InputView of SfTextInputLayoutand the fix is included in our weekly NuGet of April 26, 2022. 


NuGet Version: v20.1.0.51


We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you require any further assistance.


Loader.
Up arrow icon