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
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
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.
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.
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.
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:
(OR)
Please find the patch assemblies alone from below location:
(OR)
Please find the NuGet from below location:
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.
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” and 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.