I have the below implementation where when a user is typing in the AutoComplete control it calls API to fetch results using keyed text. But noticed that its filtering out results that our web portal (also using Blazor AutoComplete TK) is showing. I want to show all results in the list that is fetched as the user types, but it's not showing them all.
Why?
The ItemsSource is Bound to a collection that contains all results, but it's filtering some out for some reason.
<fv:AutoComplete
x:Name="specialtyAutoComplete"
CompletionMode="Contains"
CornerRadius="0,0,3,3"
FontSize="12"
ItemsSource="{Binding SpecialtyAutocompleteList}"
Margin="0,10,0,0"
Padding="0,0,30,0"
Placeholder="Search for Specialty"
SuggestionViewBackgroundColor="#FFF"
SuggestionViewBorderThickness=".5"
TextSearchPath="Synonyms">
<fv:AutoComplete.Behaviors>
<tk:RadEventToCommandBehavior Command="{Binding SpecialtyTextChangedCommand}" EventName="TextChanged" />
<tk:RadEventToCommandBehavior Command="{Binding SpecialtyItemSelectedCommand}" EventName="SuggestionItemSelected" />
</fv:AutoComplete.Behaviors>
<fv:AutoComplete.SuggestionItemTemplate>
<DataTemplate>
<Grid
ColumnDefinitions="Auto, *"
Margin="8,0"
RowDefinitions="Auto,Auto">
<Image
HeightRequest="15"
Margin="7"
Source="med_bag"
VerticalOptions="Center"
WidthRequest="15" />
<Label
FontSize="{OnPlatform Android=12, iOS=10}"
Grid.Column="1"
Text="{Binding Code}"
TextColor="Black"
VerticalOptions="Center"
VerticalTextAlignment="Center" />
<Label
FontAttributes="Italic"
FontSize="{OnPlatform Android=11, iOS=9}"
Grid.Column="1"
Grid.Row="1"
Text="{Binding Synonyms}"
TextColor="#AAA"
VerticalOptions="Center"
VerticalTextAlignment="Center" />
</Grid>
</DataTemplate>
</fv:AutoComplete.SuggestionItemTemplate>
<tk:RadAutoComplete.DisplayTextFormatter>
<local:SpecialtyTextFormatter />
</tk:RadAutoComplete.DisplayTextFormatter>
</fv:AutoComplete>