Binding AutoCompleteBox web binding

4 posts, 1 answers
  1. Veri
    Veri avatar
    2 posts
    Member since:
    Dec 2012

    Posted 05 Jun 2014 Link to this post

    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.
  2. Rosy Topchiyska
    Admin
    Rosy Topchiyska avatar
    551 posts

    Posted 10 Jun 2014 Link to this post

    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.

     
  3. DevCraft banner
  4. Veri
    Veri avatar
    2 posts
    Member since:
    Dec 2012

    Posted 10 Jun 2014 in reply to Rosy Topchiyska Link to this post

    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
  5. Answer
    Rosy Topchiyska
    Admin
    Rosy Topchiyska avatar
    551 posts

    Posted 13 Jun 2014 Link to this post

    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.

     
Back to Top