.NET Standard 2.0 support

I'm wondering if your set of Xamarin.Forms controls supports .NET Standard 2.0, as I'm using it instead of the classical PCL, but when I deploy on the device the app doesn't start, with an error message. Below all the steps to reproduce the issue:

Using Visual Studio 2017, I've created a very simple Cross-Platform app (Xamarin.Forms), 
Then I've selected a Blank App template, only Android as platform, Xamarin.Forms as Technology, and .NET Standard as Code Sharing Strategy
Testing the new app on Xamarin Live Player (on a Samsung Galaxy 7 SM-G935F )

Then following the getting started guide for the DataGrid
https://help.syncfusion.com/xamarin/sfdatagrid/getting-started

I've added the libraries Core,GridCommon, SfDataGridSfNumericTextBox to all projects, using Nuget.
Tested on the device and it runs fine.

As soon as I add the grid in the in the XAML and the relative code in the App.xaml.cs as defined in the step 3 of the paragraph "Adding SfDataGrid in Xamarin.Forms"

it stops to work:
I'm able to compile, but as soon as I lunch the app on the device it gives me the error: 
"Visualization error. Object reference not set to an instance..."

I've tested also on another device (Galaxy Nexus Android 4.3) but I get always the same error.

I'm wondering I've missed something in the Syncfusion installation or maybe some incompatibility.

Attached the full project.
Thanks



Attachment: NatunaMobileApp_97248d2d.rar

11 Replies

SS Sivaraman Sivagurunathan Syncfusion Team February 14, 2018 01:21 PM UTC

Hi Marco Giorgi, 
 
Thanks for using Syncfusion support. 
 
We have checked your query. In that we need to set the SfDataGrid.ItemsSource property for populate the data. SfDataGrid is a data bound control. So we must create a data model to bind it to the control. We have prepared the sample based on your requirement and attached for your reference you can download the same from the below link.   
 
 
Please let us known, In case of any further assists.  
 
Regards, 
Sivaraman 



MG Marco Giorgi February 15, 2018 05:13 PM UTC

thanks, but even this example doesn't work in the Live Player (Xamarin Live version 1.5.176 (676)):

Visualization Error
Default value did not match return type
Parameter name: defaultValue (argumentException)

Please note that :
- it works fine in the Emulator
- it stops to work in the Xamarin Live player as soon as I add a Syncfusion control

Can you please verify on your side, using the Live Player (Xamarin Live) from Visual Studio 2017. Thanks




SK Shivagurunathan Kamalakannan Syncfusion Team February 16, 2018 07:02 PM UTC

Hi Marco Giorgi, 
 
We have checked your query.  
The Xamarin live player does not support for the Custom Control. Xamarin live player supports only the default controls of the Xamarin. 
Regards, 
Shivagurunathan. K 



EM Emil February 17, 2018 04:56 PM UTC

hey Marco,

SfDataGrid latest version has a known bug, try one version earlier with 17 at the end.
This version perfectly works fine for me. i am on .net standard 2.0 also.
Cheers,

Emil


AN Ashok N Syncfusion Team February 19, 2018 09:45 AM UTC

Hi Marco/ Emil, 
 
Thanks for your update. The .net standard 2.0 will be support from SfDataGrid v15.4.0.17 to current version. Xamarin Live Player does not support custom controls and our SfDataGrid is custom control. So SfDataGrid does not support Xamarin Live Player. For more details please refer the Bugzilla link: 
 
 
"Emil, please share the issue details which you faced in latest version (15.4.0.20) and working in 15.4.0.17. It will help us to fix the issue in our upcoming release."  
 
Regards, 
Ashok 



AD Andy Dent June 8, 2018 10:26 AM UTC

Despite saying that you support .Net Standard 2.0 none of the docs seem to refer to it, as of 8th June 2018.

The Getting Started section only refers to PCL and the sample app bundled in 16.1.0.37 is still a PCL sample using Profile 259.

Please clarify the state of .Net Standard and SyncFusion. 


DS Divakar Subramaniam Syncfusion Team June 11, 2018 10:13 AM UTC

Hi Andy, 
 
Sorry for the inconvenience. 
 
Xamarin had provided .Net Standard 2.0 support from Xamarin Forms version 2.5 only. Our SfDataGrid and other syncfusion controls were released with 2.4.0.280 Xamarin Forms version in our last release. However, our controls (till the last release) work in .Net Standard 2.0 if you run the sample with Xamarin.Forms 2.5 and above. From our upcoming release which is scheduled to be rolled out by mid of this month, we will support Xamarin Forms 3.0 version. We were tested our controls with .Net Standard 2.0 and addressed the issues popup while doing the testing only during this release works . Since we are going to support .Net Standard 2.0 officially from this release, we were not mentioned about the .Net Standard 2.0 compatibility before. However, we will include in the document regarding this and update along with our upcoming main release. 
 
Please let us know if you need further assistance regarding this. 
 
Regards, 
Divakar. 



AD Andy Dent July 11, 2018 03:55 AM UTC

Note that .net standard support was supposedly released in v16.2.0.41 (I'm yet to install so can't confirm but assume it is there).

All the samples have been upgraded to Visual Studio 2017 with .NET Standard.

However, the docs for Getting Started still only refer to a PCL project


SK Shivagurunathan Kamalakannan Syncfusion Team July 12, 2018 09:09 PM UTC

Hi Andy, 
 
As we are supporting from the Xamarin Forms version 2.4.0.280, the Getting Started sample is in the PCL standard. However we will also upgrade the sample to Visual Studio 2017 .NET Standard on or before 16th July. We appreciate your patience until then. 
 
Regards, 
Shivagurunathan 
 



JU Juan August 11, 2018 12:57 AM UTC

Hi. Im new using SyncFusion. Is there any link where i can read an example using XF 3 instead XF 2.5? 


VR Vigneshkumar Ramasamy Syncfusion Team August 13, 2018 11:32 AM UTC

Hi Juan,  
  
We have analyzed your query for the samples of SfDataGrid in Xforms 3.0. We are currently working in updating the help documentation getting started samples to the Xforms 3.0 and we will refresh the sample in live as soon as possible. We appreciate your patience until then.  
  
We have prepared a sample using DataGrid with Xforms 3.0. Please find the sample from the below link. 
  
Regards,  
Vigneshkumar R 


Loader.
Up arrow icon