AutoComplete -- CompletionMode="Contains" not working

2 posts, 0 answers
  1. Sheldon
    Sheldon avatar
    1 posts
    Member since:
    Aug 2017

    Posted 06 Nov Link to this post

    For the RadAutoComplete control for Xamarin (release 2017.3.1103.4), I have tried setting the CompletionMode property both in markup and the code-behind, but the typeahead always behaves as though "StarsWith" was the value instead of "Contains."

     

    Is this a bug in the current release?

  2. Stefan Nenchev
    Admin
    Stefan Nenchev avatar
    559 posts

    Posted 08 Nov Link to this post

    Hi, Sheldon,

    I could not reproduce this behavior in any of the platforms. I have used the GettingStarted example from the SDK Samples Browser(available in the Examples folder of your local Telerik UI for Xamarin installation). Here is the code:

    var autoComplete = new RadAutoComplete { Watermark = "Search here..." };
    autoComplete.CompletionMode = Telerik.XamarinForms.Input.AutoComplete.CompletionMode.Contains;
    // << autocomplete-getting-started-csharp
     
    autoComplete.ItemsSource = new List<string>()
    {
        "Freda Curtis",
        "Jeffery Francis",
        "Eva Lawson",
        "Emmett Santos",
        "Theresa Bryan",
        "Jenny Fuller",
        "Terrell Norris",
        "Eric Wheeler",
        "Julius Clayton",
        "Alfredo Thornton",
        "Roberto Romero",
        "Orlando Mathis",
        "Eduardo Thomas",
        "Harry Douglas"
    };
     
    var panel = new StackLayout();
    panel.Children.Add(autoComplete);
    this.Content = panel;

    The behavior works as expected. Please provide more information on your setup. You can try rebuilding your example after changing the CompletionMode and testing.

    Regards,
    Stefan Nenchev
    Progress 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
Back to Top