How to hide [No result message] in Autocomplete

1 Answer 56 Views
AutoComplete
Le
Top achievements
Rank 1
Iron
Le asked on 21 Feb 2024, 04:13 PM

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.

1 Answer, 1 is accepted

Sort by
0
Didi
Telerik team
answered on 22 Feb 2024, 10:06 AM

Hello Xuan,

In general for hiding the no results message you have to set the text empty string to the NoResultsMessage, transparent color to the SuggestionViewBackgroundColor and SuggestionViewBorderColor properties. Then set the SuggestionViewBorderThickness="0" and SuggestionViewHeight to 0.

<telerik:RadAutoComplete x:Name="autoComplete" SuggestionViewHeight="0"
                            SuggestionViewBackgroundColor="Transparent"
                            SuggestionViewBorderColor="Transparent"
                            SuggestionViewBorderThickness="0"
                            NoResultsMessage=" "
                    ItemsSource="{Binding Source}"
                    TextSearchPath="Name" 
                    Placeholder="Show Suggestions on focus">
    <telerik:RadAutoComplete.BindingContext>
        <local:ClientsViewModel/>
    </telerik:RadAutoComplete.BindingContext>
</telerik:RadAutoComplete>

Regards,
Didi
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
AutoComplete
Asked by
Le
Top achievements
Rank 1
Iron
Answers by
Didi
Telerik team
Share this question
or