Hi, thanks for the reply below is the code I'm trying to implement, when deleting letters using delete from keyboard works ok, but if I click on x clear button inside the SfAutoComplete it crashes the app.
public async void autocomplete_SelectionChanged(object sender,Syncfusion.SfAutoComplete.XForms.SelectionChangedEventArgs e)
{
if (!string.IsNullOrWhiteSpace(autoComplete.SelectedValue.ToString()))
{
city = autoComplete.SelectedValue.ToString();
if (!string.IsNullOrEmpty(city))
{
com = await dal.GetCompanyBySpecialityCity(city, speciality);
}
if (com!=null && com.Count > 0 && city!=null)
{
lst.ItemsSource = com;
}
else
{
await DisplayAlert("List", "No items found matching your criteria", "Ok");
lst.ItemsSource = null;
autoComplete.Clear();
}
}
},