New to Telerik UI for .NET MAUI? Start a free 30-day trial
.NET MAUI AutoComplete Events
Updated over 6 months ago
AutoComplete for .NET MAUI exposes the following events:
TextChanged—Occurs when the text is changed. TheTextChangedevent handler receives aTextChangedEventArgsargument containing data related to this event. TheTextChangedEventArgsprovides 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 theSuggestionsView. TheSuggestionItemSelectedevent handler receives two parameters:- The
senderargument which is of type object, but can be cast to theRadAutoCompletetype. - A
SuggestionItemSelectedEventArgsobject which has a reference to the selected item through itsDataItemproperty.
- The
-
FilteredItemsChanged—Occurs when theFilteredItemscollection is updated. TheFilteredItemsChangedevent handler receives two parameters:- The
senderargument which is of type object, but can be cast to theRadAutoCompletetype. - A
FilteredItemsChangedEventArgsobject which has a reference to filtered items collection itsFilteredItemsproperty.
- The
-
Completed—Occurs when the user finalizes the text in an entry with the return key.