Error message when binding to an observable collection

I am able to manually add data to an observable collection of strings and it shows up in the combo box with no issues. However, when using an ObservableCollection of a custom model, it gives me this error. Any ideas why?

   at Windows.UI.Xaml.Controls.TextBox.put_SelectedText(String value)
   at Syncfusion.XForms.UWP.ComboBox.SfComboBox.OnComboBoxSourceChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
   at Xamarin.Forms.Platform.UWP.TaskExtensions.<>c.<WatchForError>b__2_1(Object e)
   at System.Threading.WinRTSynchronizationContextBase.Invoker.InvokeCore()
   at Windows.ApplicationModel.Core.UnhandledError.Propagate()
   at Microsoft.AppCenter.Utils.ApplicationLifecycleHelper.<.ctor>b__17_1(Object sender, UnhandledErrorDetectedEventArgs eventArgs)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Microsoft.AppCenter.Utils.ApplicationLifecycleHelper.<.ctor>b__17_1(Object sender, UnhandledErrorDetectedEventArgs eventArgs)

3 Replies

PA Paul Anderson S Syncfusion Team July 27, 2018 06:29 AM UTC

Hi, 
 
Thank you for using Syncfusion products. 
 
We are unable to reproduce the reported issue "Error message when binding to an observable collection" from our side. We have created the sample based on your requirement. Please have the custom sample from the following link. 
 
 
If you still face the issue can you please modify the attached sample and revert back to us which will be helpful in getting the solution. 
 
Regards, 
Paul Anderson 



EM Emil August 2, 2018 09:03 PM UTC

Hi,

I have modified your sample and reproduced that error. please run it using UWP local.
Error occurs if you load data in OnAppearing method. 

please check it.

thanks,

Emil

Attachment: ComboBoxTrans_c7bd436c.zip


PA Paul Anderson S Syncfusion Team August 3, 2018 09:21 AM UTC

Hi Emil, 
 
Thank you for using Syncfusion products. 
 
We are able to reproduce the reported issue with SfComboBox control and we have logged a defect report. We will fix the issue and the fix will be included in our upcoming Volume 2 SP2 release which will be rolled out by the end of August 2018. 
 
Regards, 
Paul Anderson 


Loader.
Up arrow icon