AutoCompleteView doesn't work with Xamarin.Forms 3.2.0

4 posts, 0 answers
  1. Elfo
    Elfo avatar
    7 posts
    Member since:
    Apr 2018

    Posted 04 Oct 2018 Link to this post

    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?

  2. Didi
    Admin
    Didi avatar
    243 posts

    Posted 04 Oct 2018 Link to this post

    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
  3. Elfo
    Elfo avatar
    7 posts
    Member since:
    Apr 2018

    Posted 08 Oct 2018 in reply to Didi Link to this post

    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

  4. Didi
    Admin
    Didi avatar
    243 posts

    Posted 08 Oct 2018 Link to this post

    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
Back to Top