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

RadAcutocompleteBox - what is populatecomplete equivalent

3 Answers 61 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jagan
Top achievements
Rank 1
Jagan asked on 24 May 2013, 04:15 PM
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?

3 Answers, 1 is accepted

Sort by
0
Ivo
Telerik team
answered on 27 May 2013, 11:28 AM
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.

0
Jagan
Top achievements
Rank 1
answered on 28 May 2013, 03:23 PM
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.
0
Ivo
Telerik team
answered on 30 May 2013, 10:37 AM
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.

Tags
General Discussions
Asked by
Jagan
Top achievements
Rank 1
Answers by
Ivo
Telerik team
Jagan
Top achievements
Rank 1
Share this question
or