RadAcutocompleteBox - what is populatecomplete equivalent

4 posts, 0 answers
  1. Jagan
    Jagan avatar
    2 posts
    Member since:
    Dec 2010

    Posted 24 May 2013 Link to this post

    We have been using Silverlight toolkit autocomplete and trying to switch to RadAutocompleteBox for some features. At first I thought RAD one is going to have whatever SL-toolkit features plus more but that doesn't seem to be the case. I don't see a method populatecomplete() in RAD which we have been using to notify autocomplete that stop populating. This we need as we are using a custom way of binding and without this populating is going into an infinite loop. Any ideas if there is an quivalent to populatecomplete() or how to tell autocomplete to stop populating?
  2. Ivo
    Admin
    Ivo avatar
    390 posts

    Posted 27 May 2013 Link to this post

    Hi Jagan,

    In RadAutoCompleteBox you can call the control's Populate() method in scenarios where setting items on the fly. Can you share with us more details about your scenario?

    Regards,
    Ivo
    Telerik

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
  4. Jagan
    Jagan avatar
    2 posts
    Member since:
    Dec 2010

    Posted 28 May 2013 Link to this post

    Thanks Ivo for quick reply. We have tried Populate() method but it is still going into an infinite loop. May be we are not using it in right way. Here is our scenario for better picture and please tell us how to use Populate method or something else in this case.

    We have a WCF service which gets the data for autocomplete source, so in Populating event we cancel the event it first and call WCF service. And then in service completed event we want to notify autocomplete to complete populating, that's where we were calling PopulateComplete and tried Populate() there.

    Any inputs on how to solve Populate() issue or if there is any other way to achieve the above we would greatly appreciate.
  5. Ivo
    Admin
    Ivo avatar
    390 posts

    Posted 30 May 2013 Link to this post

    Hi Jagan,

    I am copying the reply from your support thread.

    You can achieve the desired behavior by executing the service logic into the SearchTextChanged. After this setting the result of this service to the ItemsSource of the RadAutoCompleteBox will trigger a new populate. I prepared a sample project that demonstrates this approach.

    Regards,
    Ivo
    Telerik

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top