Hi Guys,
I am trying to use the Xamarin.Forms Autocomplete control but it is very strange that it works in different way on iOS 10.3 and Android 6.0
Actually,
private void RadAutoComplete_SuggestionItemSelected(object sender, Telerik.XamarinForms.Input.AutoComplete.SuggestionItemSelectedEventArgs e)
{ var dataItem = e.DataItem;
}
When I select an item from the autocomplete list on Android => e.DataItem is of the object type from the List which is my ItemsSource.
But when I select an item on iOS the e.DataItem is actually string with the value of the selected object. but not the whole object containing all other information in it ? How to fix this ?
<telerikInput:RadAutoComplete HorizontalOptions="FillAndExpand" BackgroundColor="Transparent" ItemsSource="{Binding AreaTypes}" WidthRequest="200" TextSearchPath="AreaType" Watermark="Search here..." SuggestionItemSelected="RadAutoComplete_SuggestionItemSelected" CompletionMode="Contains">
</telerikInput:RadAutoComplete>