This is a migrated thread and some comments may be shown as answers.

[Solved] Binding AutoCompleteBox web binding

3 Answers 101 Views
AutocompleteBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Veri
Top achievements
Rank 2
Veri asked on 06 Jun 2014, 01:28 AM
Hi Telerik Team,

How can I populate SuggestionSource from web service for AutoCompleteBox using Caliburn Micro?

I have already tried it by binding TextChanged, TextInput, TextInputUpdate and so on but it always fires everytime I input something using the keyboard even though I already set FilterStartTreshold to 3.

Any help especially with samples will be greatly appreciated.

3 Answers, 1 is accepted

Sort by
0
Rosy Topchiyska
Telerik team
answered on 10 Jun 2014, 01:46 PM
Hello Veri,

Thank you for contacting us.

Here is an article from our online documentation about using web service as provider for filtered suggestions: WebService support for AutoCompleteBox

I have also attached a sample application that demonstrates how to set a FilterStartTreshold and load the suggested items.

I hope this helps. Please, let us know if you have further questions.

Regards,
Rosy Topchiyska
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Veri
Top achievements
Rank 2
answered on 10 Jun 2014, 03:46 PM
Hello Rosy,

I already know how to do it from code behind. What I wanted to know is how to do it from ViewModel because I can't set WebServiceAutoCompleteProvider from the ViewModel.

Regards,
Veri
0
Accepted
Rosy Topchiyska
Telerik team
answered on 13 Jun 2014, 08:31 AM
Hi Veri,

I have modified the sample project. You have to define the web service provider in the view model class and use command triggered by the RadAutoCompleteBox.Loaded event to initialize the suggestions provider.

I hope this helps. Please, let us know if you have further questions.

Regards,
Rosy Topchiyska
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
AutocompleteBox
Asked by
Veri
Top achievements
Rank 2
Answers by
Rosy Topchiyska
Telerik team
Veri
Top achievements
Rank 2
Share this question
or