After updating to the latest version of Xamarin forms(126.96.36.1994457 as of writing this) while utilizing version 188.8.131.52 of the Syncfusion Xamarin controls, I began receiving a specified cast is not valid exception when trying to load multiple selected values into a SfComboBox. Specifically I'm seeing this happening on iOS, but I've not tried testing it on Android. I have attached a demo solution that reproduces this behavior, the entire stack trace doesn't seem to fit in this description box but the demo solution is setup in a way that the error is readily reproducable. All that is required is to try and navigate to the Multiple Selection tab and it will reproduce the error. If there is an issue decompressing the 7z file let me know. I had to use some different settings to get the file small enough to pass the 30MB limit.
My dev environment when reproducing this:
Visual Studio Professional 2019 (Version 16.3.1) / Visual Studio For Mac Community (Version 8.3 Build 1805)
KGKanimozhi Gunasekaran Syncfusion Team September 27, 2019 01:09 PM
Hi Jake Edwards,
Greetings from Syncfusion.
We have checked the reported issue in SfComboBox from our side. We are unable to reproduce the reported issue with given SampleBrowser sample with latest nuget. And also, please let us know if you have modified the SampleBrowser sample files or you have used the same sample to reproduce the issue.
Can you please provide the video for the issue reproduced? which will be helpful for us to analyze further and provide an appropriate solution.
ToleratingTypos.xaml.cs (113) adding a private backing field called _selectedItem2 in SelectionIndicatorViewModel for the property that will be used to bind the selected item to the ComboBox.
ToleratingTypos.xaml.cs (125 - 133) Adding a property called SelectedItem2 to SelectionIndicatorViewModel that will be used to bind the selected item to the ComboBox.
ToleratingTypos.xaml.cs (154) Adding the top two of the list items from the appCollection field to serve as initial selected values in the ComboBox on load. This is to simulate a scenario where a user would load previously selected values into the combo box.