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

AutoComplete not show anything

5 Answers 142 Views
AutoComplete
This is a migrated thread and some comments may be shown as answers.
Quach Sy
Top achievements
Rank 1
Quach Sy asked on 05 Aug 2017, 01:55 AM

I has add telerik packages to my project

In XAML;

 

<?xml version="1.0" encoding="utf-8"?>
<ContentPage 
    xmlns="http://xamarin.com/schemas/2014/forms" 
    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" 
    xmlns:telerikInput="clr-namespace:Telerik.XamarinForms.Input;assembly=Telerik.XamarinForms.Input"
    xmlns:local="clr-namespace:TExtA" x:Class="TExtA.TExtAPage">

    <ContentPage.Content>
        <StackLayout BackgroundColor="Aqua">
            <telerikInput:RadAutoComplete HeightRequest="40" SuggestMode="Suggest" IsVisible="true" IsEnabled="true" SuggestionViewHeight="100" ShowSuggestionView="true" BackgroundColor="Black" x:Name="autoComplete" Watermark="Search here..." />
        </StackLayout>
    
    </ContentPage.Content>
    
</ContentPage>

In CS:

this.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",
                "Parker Blanton",
                "Leanne Motton",
                "Shanti Osborn",
                "Merry Lasker",
                "Jess Doyon",
                "Kizzie Arjona",
                "Augusta Hentz",
                "Tasha Trial",
                "Fredda Boger",
                "Megan Mowery",
                "Hong Telesco",
                "Inez Landi",
                "Taina Cordray",
                "Shantel Jarrell",
                "Soo Heidt",
                "Rayford Mahon",
                "Jenny Omarah",
                "Denita Dalke",
                "Nida Carty",
                "Sharolyn Lambson",
                "Niki Samaniego",
                "Rudy Jankowski",
                "Matha Whobrey",
                "Jessi Knouse",
                "Vena Rieser",
                "Roosevelt Boyce",
                "Kristan Swiney",
                "Lauretta Pozo",
                "Jarvis Victorine",
                "Dane Gabor"
            };

 

Build and run no error, but on simulator not show anything, can touch, focus, type entrytext, not show watermark

XAmarin Forms 2.3.4.247

Telerik UI .2017.1.10118.233

 

5 Answers, 1 is accepted

Sort by
0
Lance | Manager Technical Support
Telerik team
answered on 08 Aug 2017, 03:14 PM
Hi Quach Sy,

You're using an old version of UI for Xamarin, if you update to the latest you'll see it.  The reason for your issue is likely that you forgot to register the renderers in the native projects. Since R2 2017, you no longer needed to do this.

I strongly recommend that you update to the latest version as there are significant fixes and improvements since R1 2017. However, if you must stay on R1 2017, then follow the directions here (particularly, the renderers link underneath the assemblies list).

If you have any further trouble, please open a support ticket here and share the code with us. A ticket carries a guaranteed response from Telerik Support and you can attach project files.

Regards,
Lance | Tech Support Engineer, Sr.
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
0
Crimsonlogic
Top achievements
Rank 1
answered on 20 Sep 2017, 12:53 PM

Hi

i am also have the same issue. please find attached dll versions i am currently using .

 

Please suggest on this

 

0
Lance | Manager Technical Support
Telerik team
answered on 20 Sep 2017, 02:58 PM
Hello Crimsonlogic,

I was not able to replicate your issue, see my attached demo. In it I implement a simple demo using the Getting Started example.

             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:telerikInput="clr-namespace:Telerik.XamarinForms.Input;assembly=Telerik.XamarinForms.Input"
             x:Class="R32017AutoCompleteTest.Portable.StartPage">
    <Grid>
        <telerikInput:RadAutoComplete BackgroundColor="White" x:Name="autoComplete" Watermark="Search here..." />
    </Grid>
</ContentPage>

public partial class StartPage : ContentPage
    {
        public StartPage()
        {
            InitializeComponent();
 
            this.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",
                "Parker Blanton",
                "Leanne Motton",
                "Shanti Osborn",
                "Merry Lasker",
                "Jess Doyon",
                "Kizzie Arjona",
                "Augusta Hentz",
                "Tasha Trial",
                "Fredda Boger",
                "Megan Mowery",
                "Hong Telesco",
                "Inez Landi",
                "Taina Cordray",
                "Shantel Jarrell",
                "Soo Heidt",
                "Rayford Mahon",
                "Jenny Omarah",
                "Denita Dalke",
                "Nida Carty",
                "Sharolyn Lambson",
                "Niki Samaniego",
                "Rudy Jankowski",
                "Matha Whobrey",
                "Jessi Knouse",
                "Vena Rieser",
                "Roosevelt Boyce",
                "Kristan Swiney",
                "Lauretta Pozo",
                "Jarvis Victorine",
                "Dane Gabor"
            };
        }
    }


Next Steps

Without seeing your code, I can't determine what the problem is. The first thing to check is to make sure you're using all the required dependencies (you can find the list here).

After you've added the dependencies, make sure you're doing a Solution > Rebuild to ensure that the newly added code is deployed. Xamarin Android is set to Fast Deploy by default, which sometimes doesn't deploy newly added code.

If you want to diable Fast Deploy, you can find the setting here:




Further Support

If you still have issues after confirming you have the dependencies; please open a support ticket here, mention what SDK you're using, what device you're targeting and attach either:

- A runnable project that replicates the issue
OR
- Attach the files for the view that contains the RadAutoComplete (view, view model and code-behind).

Either I, or one of my colleagues, will review the code and follow up with you within the ticket's timeframe.

Regards,
Lance | Tech Support Engineer, Sr.
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
0
Crimsonlogic
Top achievements
Rank 1
answered on 21 Sep 2017, 03:17 PM
I am currently using Visual studio 2015. Can you please suggest if everything is same even for VS2015?
0
Lance | Manager Technical Support
Telerik team
answered on 21 Sep 2017, 06:02 PM
Hello Crimsonlogic,

Yes, the code is the same, no matter what version of Visual Studio you are using.  You can also go here to the Getting Started article in the documentation. That is the example that is being used in my previously attached project.

If your code is not working, please follow the instructions I placed under the "Further Support" section in my last reply. Because by itself, the RadAutoComplete works, so there might be other factors in your View/ViewModel that is causing the problem.

I will see your support ticket come in, with the attached files, and I'll be able to investigate further.

Regards,
Lance | Tech Support Engineer, Sr.
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
Tags
AutoComplete
Asked by
Quach Sy
Top achievements
Rank 1
Answers by
Lance | Manager Technical Support
Telerik team
Crimsonlogic
Top achievements
Rank 1
Share this question
or