Events

RadAutoCompleteView 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 AutoCompleteView/Features folder of the SDK Samples Browser 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 RadAutoCompleteView 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 RadAutoCompleteView type.
    • A FilteredItemsChangedEventArgs object which has a reference to filtered items collection its FilteredItems property.

See Also

In this article
Not finding the help you need? Improve this article