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

Error loading iOS.DataFormRenderer

1 Answer 128 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
Joe
Top achievements
Rank 1
Joe asked on 20 Nov 2015, 07:11 PM

I have a project that uses a PCL library along with iOS and Android apps. I had been using just the RadListView, but now I added a RadDataForm to the project. I have followed the directions for adding the renderer (same way I did for RadListView) but I get the following error when global::Xamarin.Forms.Forms.Init (); is called: 

Could not load type Telerik.XamarinForms.InputRenderer.iOS.DataFormRenderer, Telerik.XamarinForms.InputRenderer.iOS, Version=2015.3.1028.151, Culture=neutral, PublicKeyToken=null while decoding custom attribute

 I have the following two attributes in my AppDelegate.cs file, outside the using clause:

[assembly:Xamarin.Forms.ExportRenderer(typeof(Telerik.XamarinForms.DataControls.RadListView), typeof(Telerik.XamarinForms.DataControlsRenderer.iOS.ListViewRenderer))]
[assembly:Xamarin.Forms.ExportRenderer(typeof(Telerik.XamarinForms.Input.RadDataForm), typeof(Telerik.XamarinForms.InputRenderer.iOS.DataFormRenderer))]

And the following call in the FinishedLaunching method after global::Xamarin.Forms.Forms.Init ();

Telerik.XamarinForms.Common.iOS.TelerikForms.Init ();

1 Answer, 1 is accepted

Sort by
0
Rosy Topchiyska
Telerik team
answered on 23 Nov 2015, 12:14 PM
Hi Joe,

Thank you for contacting us.

We have not observed such issue on our side. Please, take a look at this article from our online documentation and make sure that you have added all required Telerik assemblies.

The next step is to try reproducing the issue in a new project. If you observe the same behavior, you can open a support ticket where you can attach the test project and we will further investigate the problem. If you can not reproduce the issue, you may try to remove all Xamarin related references and packages from the project and delete all obj and bin folders, then add the references again and try to build.

Please, also note that the latest supported version of Xamarin Forms is 1.5. The next internal build that will be available by the end of the week will support Xamarin Forms 2.0.

I hope this helps. Please, let us know if you have any other questions.

Regards,
Rosy Topchiyska
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
DataForm
Asked by
Joe
Top achievements
Rank 1
Answers by
Rosy Topchiyska
Telerik team
Share this question
or