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

.NET MAUI AutoComplete Events

AutoComplete for .NET MAUI exposes the following events:

  • TextChanged—Occurs when the text is changed. The TextChanged event handler receives a TextChangedEventArgs argument containing data related to this event. The TextChangedEventArgs provides the following properties:
    • NewTextValue(string)—Which gets the new text value.
    • OldTextValue(string)—That gets the old text value.

You can find a working demo labeled Remote Search in the AutoComplete/Features folder of the SDKBrowser Demo application.

  • SuggestionItemSelected—Occurs when an item is selected from the SuggestionsView. The SuggestionItemSelected event handler receives two parameters:

    • The sender argument which is of type object, but can be cast to the RadAutoComplete type.
    • A SuggestionItemSelectedEventArgs object which has a reference to the selected item through its DataItem property.
  • FilteredItemsChanged—Occurs when the FilteredItems collection is updated. The FilteredItemsChanged event handler receives two parameters:

    • The sender argument which is of type object, but can be cast to the RadAutoComplete type.
    • A FilteredItemsChangedEventArgs object which has a reference to filtered items collection its FilteredItems property.
  • Completed—Occurs when the user finalizes the text in an entry with the return key.

See Also

In this article