Use of WebServiceTextSearchProvider: exception

5 posts, 0 answers
  1. Dean
    Dean avatar
    4 posts
    Member since:
    Jan 2014

    Posted 07 Sep 2015 Link to this post

    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.

     

     
     
  2. Tsvyatko
    Admin
    Tsvyatko avatar
    833 posts

    Posted 07 Sep 2015 Link to this post

    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
  3. DevCraft banner
  4. Dean
    Dean avatar
    4 posts
    Member since:
    Jan 2014

    Posted 07 Sep 2015 Link to this post

    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.

     
     

  5. Tsvyatko
    Admin
    Tsvyatko avatar
    833 posts

    Posted 08 Sep 2015 Link to this post

    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
  6. Dean
    Dean avatar
    4 posts
    Member since:
    Jan 2014

    Posted 09 Sep 2015 in reply to Tsvyatko Link to this post

    OK, this runs fine but mine is throwing  - I will try to find what I am doing differently, thanks!
Back to Top
DevCraft banner