I'm using data binding to show some pre-selected items in the Sfcombobox but they got displayed improperly in iOS ,
Kindly check the attached image to see what I mean
This is the XAML code
<inputLayout:SfTextInputLayout
OutlineCornerRadius="10"
UnfocusedColor="White"
Hint="{Binding IncidentTypeText}"
ContainerType="Outlined">
<combobox:SfComboBox
x:Name="incidentTypeCombo"
DisplayMemberPath="Name"
SelectedValuePath="Id"
SelectedIndices="{Binding SelectedIncidentTypes, Mode=TwoWay}"
DataSource="{Binding IncidentTypes, Mode=TwoWay}"
MultiSelectMode="Token"
TextColor="{DynamicResource Gray-White}"
TokensWrapMode="Wrap"
IsEditableMode="False"
IsSelectedItemsVisibleInDropDown="False">
<combobox:SfComboBox.TokenSettings>
<combobox:TokenSettings
FontSize="15"
BackgroundColor="{DynamicResource Gray-White}"
TextColor="{DynamicResource VisiumKmsBlue}"
SelectedBackgroundColor="#ffffe0"
DeleteButtonColor="{DynamicResource VisiumKmsBlue}"
IsCloseButtonVisible="true"
CornerRadius="15"
DeleteButtonPlacement="Right">
</combobox:TokenSettings>
</combobox:SfComboBox.TokenSettings>
</combobox:SfComboBox>
</inputLayout:SfTextInputLayout>
Bear in mind that when I click on the clear button and start selecting the items myself , it works fine, the issue only appears if I already have some selected items that I need to show in Token mode in the Sfcombobox
Attachment: Test_1f7e66b8.zip
Query: Selected items using Token mode don't get displayed properly in iOS
We have fixed the SelectedIndices issue in iOS and we have prepared a new patch from the latest version. Please find the NuGet from the below link.
Patch version: 20.3.0.47
Please note that we have created this patch for version 20.3.0.47 specifically, to resolve the issue reported in this ticket. If you have received other patches for the same version for other products, please apply all patches in the order received.
Note: Please refer to the below link to apply the custom patch,
https://www.syncfusion.com/kb/6987/how-to-clear-nuget-cache
We will include the fix in our upcoming weekly release which will be rolled out on October 18, 2022. We appreciate your patience until then.
Disclaimer: The inclusion of this solution in the weekly release may change due to other factors, including but not limited to QA checks and work reprioritization.
Regards,
Ruba Shanmugam
Hi Ruba, thank you for your reply, I just have a question, do I need to use this Assembly URL that you left? because I can see that version 20.3.0.47 exists in the NuGet package manager and I can directly select this version and update the package
Do I need to do something else after updating the package from the NuGet package manager?
Hi Ahmed,
Can you please refer to the below link for applying a custom patch in the application?
Custom patch: https://www.syncfusion.com/kb/11556/how-to-install-the-customer-patch-nuget-in-windows-machine
Please let us know if you have any other details.
Regards,
Ruba Shanmugam
Hi Ruba,
My device is MacOS, so I followed these instructions in the following URL -> https://www.syncfusion.com/kb/10474/how-to-install-the-customer-patch-nuget-in-macos-machine
and after following each step in the previous URL, the issue disappeared but a new issue popped up which is there are essentially no selected items got displayed in the SfComboBox and it only works fine when I open the SfComboBox drop-down menu and select the items myself, and it doesn't show the pre-selected items that I specify in the code using the selectedIndices property, bear in mind that I haven't changed the code that I provided previously, the result is attached in the image, kindly check it out.
May you please help?
Attachment: Screen_Shot_20221012_at_1.29.18_PM_81ee0248.zip
Hi Ahmed,
Query: it doesn't show the pre-selected items that I specify in the code using the selectedIndices property,
We have prepared the sample based on the provided information, using the SelectedIndices set the pre-selected items at initially. But we couldn’t able to replicate the reported crash issue. We have prepared a sample for your reference and please get it from the attachments.
We ask you to try our sample and if your requirement is different, please explain to us briefly and share the replication steps with the sample. It will help us to provide the proper solution at the easiest. Please let us know if you need any other details.
Regards,
Ruba Shanmugam
Hi Ahmed,
Thanks for your patience.
We have included the fix in our latest Weekly
NuGet release v20.3.0.50 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,
Ruba Shanmugam
Hi Ruba,
I updated all of my Syncfusion controls to the latest version v20.3.0.50 and I'm still facing the same issue even after cleaning my project and building the solution again , please check the attached image to show you my installed NuGet Packages and their current version number
Regards,
Ahmed
Hi Ahmed,
Query: it doesn't show the pre-selected items that I specify in the code using the selectedIndices property,
We have prepared the sample based on the provided information, using the SelectedIndices and set the pre-selected items at initially with the latest version of SfComboBox NuGet. But we couldn’t able to replicate the reported issue. We have prepared a sample for your reference and please get it from the attachments.
We ask you to try our sample and if your requirement is different, please explain to us briefly and share the replication steps with the sample. It will help us to provide the proper solution at the easiest. Please let us know if you need any other details.
Regards,
Ruba Shanmugam