We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Downgrape to xamarin 2.1

HI I just start using this new controls, i started with SfDataGrid; and I have the following error: 
System.TypeLoadException: Could not load type 'Xamarin.Forms.ElementTemplate' from assembly 'Xamarin.Forms.Core, Version=, Culture=neutral, PublicKeyToken=null'.

is this a xamarin version problem?

how can downgrade to a xamarin correct version ?

6 Replies

DS Divakar Subramaniam Syncfusion Team August 9, 2016 06:48 AM UTC

Hi Miguel, 
Thank you for contacting Syncfusion Support.

Yes, this is a Xamarin version problem. This error usually occurs when there is a mismatch of Xamarin NuGet packages between your sample and SfDataGrid assemblies. Our version of release supports Xamarin NuGet of version Xamarin recommends the NuGet packages to be inline in order to avoid potential issues. So please uninstall all the other version of NuGets and use version in your sample. Clean and rebuild the project before running it.
You can see the software requirements of Syncfusion controls from our read me information.
ReadMe link:
Please uninstall all the Xamarin NuGet packages installed in your sample and then install version Xamarin NuGet packages which is available in “Manage NuGet packages” option in properties section of your sample. 

MA Miguel Arenas August 9, 2016 10:52 PM UTC

Thank you for help.

Now the aplication run without erros, but doesn;t show nothnig in the screen, it show a white screen.

This is the sample code that i'm using.

here is part of the code, i think i missing some code:

        SfDataGrid dataGrid;
        public App()
            dataGrid = new SfDataGrid();
            dataGrid.ItemsSource = new OrderInfoRepository().OrderInfoCollection; //viewModel.OrderInfoCollection;
            //OrderInfoRepository viewModel = new OrderInfoRepository();
            MainPage = new ContentPage { Content = dataGrid };

DS Divakar Subramaniam Syncfusion Team August 10, 2016 10:33 AM UTC

Hi Miguel, 
Thank you for using Syncfusion Products. 
We are unable to reproduce the reported issue and the data is loading find in our side. We have prepared a sample based on our below getting started UG link for your reference.  
You can download the working copy of the sample from the below link. 
Also please refer the output screenshot of our sample below, 

MA Miguel Arenas August 10, 2016 05:29 PM UTC

Thank you for your answer. The screenshot, that you send is for windows phone, have you try on android?

MA Miguel Arenas August 10, 2016 05:49 PM UTC

I finally found the problem, base on your sample; I dind't add 2 references in the android project, that were on the core.

Thank you.

DS Divakar Subramaniam Syncfusion Team August 11, 2016 05:51 AM UTC

Hi Miguel, 
We are glad that your issue has been resolved. Please let us know if you need any other assistance. 

Live Chat Icon For mobile
Up arrow icon