Telerik UI for Windows Phone by Progress

RadAutoCompleteBox exposes the SuggestionSelected event which is fired each time the end-user picks a suggestion from the suggestions popup.

Handling the SuggestionSelected event

The following XAML code snippet demonstrates how to subscribe for the SuggestionSelected event of RadAutoCompleteBox:

CopyXAML
<telerikInput:RadAutoCompleteBox SuggestionSelected="radAutoCompleteBox_SuggestionSelected"/>

In the event handler of the SuggestionSelected event you have access to the item that has been picked. The following C# code snippet gives an example of how the SuggestionSelected event can be handled:

CopyC#
private void radAutoCompleteBox_SuggestionSelected(object sender, SuggestionSelectedEventArgs e)
{
    string selectedSuggestion = e.SelectedSuggestion as string;
    if (selectedSuggestion == "Suggestion 26")
    {
    //Do some stuff
    }
}

See Also

Other Resources