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

Use of WebServiceTextSearchProvider: exception

4 Answers 71 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.
Dean
Top achievements
Rank 1
Dean asked on 07 Sep 2015, 08:18 AM

For Windows Phone, I am following the documentation example for using a WebServiceTextSearchProvider class but am getting a NullReferenceException during this call:

 

autoCompleteBox.InitializeSuggestionsProvider(this.webServiceProvider);

 

My webServiceProvider variable is of course a valid object, and the InputChanged event is set up too.

 

The sample code is pretty simple so cannot see what is wrong, unless there is some accompanying properties needed on the control itself in Xaml. I have removed the FilterMode and ItemsSource without luck - these were initially still set, but it throws either way.

 

 
 

4 Answers, 1 is accepted

Sort by
0
Tsvyatko
Telerik team
answered on 07 Sep 2015, 10:45 AM
Hi Dean,

I have prepared sample application demonstrating how the desired functionality can be achieved. Please have a look at the attached project and let us know if this helps.

Regards,
Tsvyatko
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Dean
Top achievements
Rank 1
answered on 07 Sep 2015, 04:05 PM
Your sample is for Windows Phone 8 - not for Windows Phone Universal. The WebServiceAutoCompleteProvider is not used for Universal, it is instead the WebServiceTextSearchProvider.

 

So this does not help.

 
 

0
Tsvyatko
Telerik team
answered on 08 Sep 2015, 08:31 AM
Hello Dean,

I have modified the project for Windows Universal. Please excuse me for the misunderstanding.

Regards,
Tsvyatko
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Dean
Top achievements
Rank 1
answered on 09 Sep 2015, 01:09 PM
OK, this runs fine but mine is throwing  - I will try to find what I am doing differently, thanks!
Tags
AutocompleteBox
Asked by
Dean
Top achievements
Rank 1
Answers by
Tsvyatko
Telerik team
Dean
Top achievements
Rank 1
Share this question
or