Dear Telerik,
Can we customize radEntry of AutoComplete - like: add new button after Clear button?
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>
<telerik:RadAutoComplete x:Name="autoComplete"
Placeholder="Stock Number"
CompletionMode="StartsWith"
SuggestMode="SuggestAppend"
SuggestionViewPosition="Bottom"
TextSearchPath="StockNumber"
Style="{StaticResource TelerikAutoComplete}"
ItemsSource="{Binding StockNumbers}"
AutomationId="autoComplete" />
Hi all,
I am using AutoComplete as Entry in LoginPage for UserEmail entry; In case the email entered has not been saved in the system, I do not want the [No result message] window to appear. How can I do that?
Xuan.
How to get AutoComplete / filtering functionality for RadComboBox so that the list gets smaller as a user types?
<telerik:RadComboBox x:Name="TankComboBox"Edit: RadTabView also leaks. Attached new sample app.
We have found leaks in these controls. I have attached a sample app that demonstrates the problem.
I have logged a support ticket but is anyone else experience similar leaks with these controls?
From the included readme.md:-
Memory leaks when using
I have a RadAutoComplete which works fine. But what I need to do is to be able to Clear the selected value programmatically (not using the clear button).
We have a use case where a user can have a selected value from the autocomplete, but then they use a toggle/button to change how the screen performs an API (not using the RadAutoCompelte selected value, but a different property), but when the user selects that toggle, it still leaves the selected value in the UI.
The user can be confused as to what style lookup they are performing seeing as when they toggle the other style lookup using the toggle button, the selected value from the autocomplete is not cleared.
I have been unable to find an event or option to clear the selected value in the display.
Can you tell me if there is a way to do this?
thanks
Billy
I have implemented the AutoComplete feature fed from API successfully. But when an Item in the list is selected, it leaves the Keyboard open.
The keyboard will only close upon hitting the "return" key in the soft keyboard. Users (in almost all cases) will expect the keyboard to close when selecting an item as it closes the dropdown list when item is selected.
How can I close the keyboard when the autocomplete item is selected? There doesn't appear to be an ItemSelected event.