WPF Autocomplete with API Call

1 Answer 143 Views
AutoCompleteBox AutoSuggestBox
Jim
Top achievements
Rank 1
Jim asked on 31 Aug 2021, 05:27 PM
Is it possible to use the Telerik Autocomplete controls but have the data come from a cloud API call?

1 Answer, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 03 Sep 2021, 09:45 AM

Hi Jim,

Thank you for your interest in our RadAutoCompleteBox control.

The control does not provide an API to directly connect to a cloud and get the data from there. You will need to manually get the data and set the ItemsSource of the control. In this case, you could consider using the RadAutoSuggestBox control. The behavior is the same here. You will need to get the data before populating the control. The difference here is that the control provides two events that can be used to populate it ItemsSource. TextChanged and QuerySubmitted. The first one will be trigger on every user key input. The second one will be called when the user clicks enter or clicks on the search button on the right or choosing suggestion from the drop-down list. You can consider using one of those events which most fits your needs.

Regards,
Dinko
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
AutoCompleteBox AutoSuggestBox
Asked by
Jim
Top achievements
Rank 1
Answers by
Dinko | Tech Support Engineer
Telerik team
Share this question
or