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

AutoCompleteView doesn't work with Xamarin.Forms 3.2.0

3 Answers 61 Views
AutoCompleteView
This is a migrated thread and some comments may be shown as answers.
Elfo
Top achievements
Rank 1
Elfo asked on 04 Oct 2018, 08:29 AM

It seems that the control doesn't work with Xamarin.Forms 3.2.0.

If you try when the first xaml file that uses the contronl loads you have this cryptic error:

Unhandled Exception: System.TypeLoadException: Could not resolve type with token...

To test just create a default Xamarin.Forms app and update Forms to 3.2.0. ...

Could you please check?

3 Answers, 1 is accepted

Sort by
0
Didi
Telerik team
answered on 04 Oct 2018, 12:23 PM
Hi Elfo,

I have tested the RadAutoCompleteView with Xamarin.Forms v-3.2.0.871581 and v-3.3.0.871608-pre2 and I could not reproduce the issue. Please take a look at the attached project and may I ask you to modify it according your specific setup and send it back to me? This could help for further research.

Looking forward to your reply.

Regards,
Didi
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
Elfo
Top achievements
Rank 1
answered on 08 Oct 2018, 10:31 AM

With the provided test project it seems to work correctly. I don't know why in my project it doesn't work as well with Forms 3.2.

It seems that the culprit is a style for the autocomplete view that I have in App.xaml (but the same style in your project works good...)

xmlns:tk="clr-namespace:Telerik.XamarinForms.Input;assembly=Telerik.XamarinForms.Input"

<Style x:Key="AutocompleteBaseStyle" TargetType="tk:RadAutoCompleteView">
            <Setter Property="TextColor" Value="Red" />
            <Setter Property="WidthRequest" Value="800"/>
            <Setter Property="FontSize" Value="40"/>
            <Setter Property="Margin" Value="0"/>
</Style>

Commenting the style it works also in 3.2 otherwise the app crashes on the InitializeComponent() of App.xaml.cs

0
Didi
Telerik team
answered on 08 Oct 2018, 12:29 PM
Hi Elfo,

Thank you for the provided code.

I have tested it and on my side it works fine. I have declared the Style for the AutoCompleteView in the resources of the MainPage.xaml file. Please take a look at the attached sample how this could be achieved. 

If you still experience the issue, I'd ask you to send the a sample project where it could be replicated, so I could investigate it. You will need to open a support ticket and attach it there, because in the forum only image attachments are allowed.

I hope I could help.

Regards,
Didi
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
AutoCompleteView
Asked by
Elfo
Top achievements
Rank 1
Answers by
Didi
Telerik team
Elfo
Top achievements
Rank 1
Share this question
or