HMHemalatha Marikumar Syncfusion Team October 25, 2019 01:48 AM
Hi Alberto, Greetings from Syncfusion.
Query: Which kind of type should I pass to the SelectedItem property?
We would like to let you know that Type of SelectedItem property is object. Hence it holds a single item for single selection (MultiSelection Mode – None) and collection of items for multi selection (MultiSelectiion Mode – either Token or Delimiter).
You can retrieve the SelectedItem from ValueChanged event also. Please download the prepared sample in below
If the issue mentioned differs from the above please modify the provided sample with the issue reproducing sample and also the platform details and please confirm whether the ComboBox is placed inside the SfTextInputLayout which will be helpful for us to analyze further and provide an appropriate solution.
ALAlberto October 28, 2019 06:03 AM
i have tested more with this control and i have noticed that, if in the constructor i set the collection i don't have any problem to see the list otherwise iif i am in a separate thread the item source is not set correctly.
Usually after the constructor we start a parallel thread in order to load collection
await (page.BindingContext as ViewModelBase).InitializeAsync(parameter);
With other component's we have not found any issue.
HMHemalatha Marikumar Syncfusion Team October 30, 2019 06:51 AM
Thanks for the update.
We have checked your requirement “Load the DataSource and SelectedItems with Async” in SfComboBox. We have prepared the sample based on your requirement.