I have a page with the SfAutoComplete control and a button. SfAutoComplete is bound to a ObservableCollection for DataSource and SelectedItem.
Clicking on the button navigates to a page with a list of items. Once the item is selected I update the ObservableCollection for the SelectedItem with the newly added items.
I then use PopAsync to get back to the main page.
The newly added items are not visible in SfAutoComplete's selected list. I checked the OnAppearing of the main page and I can see that the ObservableCollection has the new items. It is just not displayed.
Now a slight change to the above process-
I start typing into the SfAutoComplete control and select one of the suggested items. This is added to the SfAutoComplete's selected list.
Now I click on the add button and navigate to the list view and select another item from there.
In this case the new item is added correctly.
What could be wrong?
Is there a way to manually force the SfAutoComplete to update it's SelectedItem values - I tried a few ways on the OnAppearing but it did not work.
Is there a way to refresh the SfAutoComplete's SelectedItem list manually from code behind?