New to Telerik UI for .NET MAUI? Start a free 30-day trial

.NET MAUI AutoComplete Methods

AutoComplete for .NET MAUI exposes the ability to explicitly show/hide the popup containing all items through the following methods:

  • ShowSuggesstions—Shows all items when the control receives focus.
  • HideSuggestions—Hide all items when the control looses focus.


The example below uses ShowSuggesstions method to display all items as soon as the AutoComplete receives the focus.

1. Create the needed business objects, for example type Client with the following properties:

public class Client
    public Client() { }

    public Client(string name, string imageSource)
        this.Name = name;
        this.ImageSource = imageSource;

    public Client(string name, string email, string imageSource)
        this.Name = name;
        this.Email = email;
        this.ImageSource = imageSource;

    public string Name { get; set; }
    public string Email { get; set; }
    public string ImageSource { get; set; }

2. Define a ViewModel with a collection of Client objects:

public class ClientsViewModel
    public ClientsViewModel()
        this.Source = new ObservableCollection<Client>()
            new Client("Freda Curtis", "", "available.png"),
            new Client("Jeffery Francis", "", "away.png"),
            new Client("Eva Lawson", "", "available.png"),
            new Client("Emmett Santos", "", "busy.png"),
            new Client("Theresa Bryan", "", "available.png"),
            new Client("Jenny Fuller", "", "busy.png"),
            new Client("Terrell Norris", "", "away.png"),
            new Client("Eric Wheeler", "", "away.png"),
            new Client("Nida Carty", "", "away.png"),
            new Client("Niki Samaniego", "", "busy.png")

    public ObservableCollection<Client> Source { get; set; }

3. Declare the RadAutoComplete in XAML:

<telerik:RadAutoComplete x:Name="autoComplete"
                         ItemsSource="{Binding Source}"
                         Placeholder="Show Suggestions on focus">

4. Use the following code to attach the focused event to the control:

this.autoComplete.Focused += this.AutoCompleteView_Focused;

5. Call the ShowSuggestions method inside the Focused event:

private void AutoCompleteView_Focused(object sender, FocusEventArgs e)

Here is the result:

.NET MAUI AutoComplete Show Suggestions

See Also

In this article