Hi,
i'm evaluating SfDataGrid Control for use in our App, but can't get it to work.
I followed the steps described here: https://help.syncfusion.com/xamarin/sfdatagrid/getting-started?cs-save-lang=1&cs-lang=xaml
After Step "Binding data to SfDataGrid" i tried to start the app but all i got was a NullReferenceException. The attached archive contains my example code.
12-12 16:06:08.730 I/MonoDroid(30698): UNHANDLED EXCEPTION:
12-12 16:06:08.749 I/MonoDroid(30698): System.NullReferenceException: Object reference not set to an instance of an object.
12-12
16:06:08.749 I/MonoDroid(30698): at
Syncfusion.SfDataGrid.XForms.Droid.ExtendedScrollViewRenderer.OnElementChanged
(Xamarin.Forms.Platform.Android.ElementChangedEventArgs`1[TElement] e)
[0x00061] in <e7777f5460ef467fae38d3543aa61e1f>:0
12-12
16:06:08.749 I/MonoDroid(30698): at
Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].SetElement
(TElement element) [0x000f4] in
C:\BuildAgent2\work\ca3766cfc22354a1\Xamarin.Forms.Platform.Android\VisualElementRenderer.cs:193
12-12 16:06:08.749 I/MonoDroid(30698): at
Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].Xamarin.Forms.Platform.Android.IVisualElementRenderer.SetElement
(Xamarin.Forms.VisualElement element) [0x00027] in
C:\BuildAgent2\work\ca3766cfc22354a1\Xamarin.Forms.Platform.Android\VisualElementRenderer.cs:129
12-12 16:06:08.749 I/MonoDroid(30698): at
Xamarin.Forms.Platform.Android.Platform.CreateRenderer
(Xamarin.Forms.VisualElement element) [0x0001f] in
C:\BuildAgent2\work\ca3766cfc22354a1\Xamarin.Forms.Platform.Android\Platform.cs:289
12-12 16:06:08.749 I/MonoDroid(30698): at
Xamarin.Forms.Platform.Android.VisualElementPackager.AddChild
(Xamarin.Forms.VisualElement view,
Xamarin.Forms.Platform.Android.IVisualElementRenderer oldRenderer,
Xamarin.Forms.Platform.Android.RendererPool pool, System.Boolean
sameChildren) [0x00023] in
C:\BuildAgent2\work\ca3766cfc22354a1\Xamarin.Forms.Platform.Android\VisualElementPackager.cs:74
12-12 16:06:08.749 I/MonoDroid(30698): at
Xamarin.Forms.Platform.Android.VisualElementPackager.SetElement
(Xamarin.Forms.VisualElement oldElement, Xamarin.Forms.VisualElement
newElement) [0x00104] in
C:\BuildAgent2\work\ca3766cfc22354a1\Xamarin.Forms.Platform.Android\VisualElementPackager.cs:207
12-12 16:06:08.750 I/MonoDroid(30698): at
Xamarin.Forms.Platform.Android.VisualElementPackager.Load () [0x00000]
in
C:\BuildAgent2\work\ca3766cfc22354a1\Xamarin.Forms.Platform.Android\VisualElementPackager.cs:58
12-12 16:06:08.750 I/MonoDroid(30698): at
Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].SetPackager
(Xamarin.Forms.Platform.Android.VisualElementPackager packager)
[0x00007] in
C:\BuildAgent2\work\ca3766cfc22354a1\Xamarin.Forms.Platform.Android\VisualElementRenderer.cs:337
12-12 16:06:08.750 I/MonoDroid(30698): at
Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].SetElement
(TElement element) [0x00111] in
C:\BuildAgent2\work\ca3766cfc22354a1\Xamarin.Forms.Platform.Android\VisualElementRenderer.cs:196
12-12 16:06:08.750 I/MonoDroid(30698): at
Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].Xamarin.Forms.Platform.Android.IVisualElementRenderer.SetElement
(Xamarin.Forms.VisualElement element) [0x00027] in
C:\BuildAgent2\work\ca3766cfc22354a1\Xamarin.Forms.Platform.Android\VisualElementRenderer.cs:129
12-12 16:06:08.750 I/MonoDroid(30698): at
Xamarin.Forms.Platform.Android.Platform.CreateRenderer
(Xamarin.Forms.VisualElement element) [0x0001f] in
C:\BuildAgent2\work\ca3766cfc22354a1\Xamarin.Forms.Platform.Android\Platform.cs:289
12-12 16:06:08.750 I/MonoDroid(30698): at
Xamarin.Forms.Platform.Android.VisualElementPackager.AddChild
(Xamarin.Forms.VisualElement view,
Xamarin.Forms.Platform.Android.IVisualElementRenderer oldRenderer,
Xamarin.Forms.Platform.Android.RendererPool pool, System.Boolean
sameChildren) [0x00023] in
C:\BuildAgent2\work\ca3766cfc22354a1\Xamarin.Forms.Platform.Android\VisualElementPackager.cs:74
12-12 16:06:08.750 I/MonoDroid(30698): at
Xamarin.Forms.Platform.Android.VisualElementPackager.SetElement
(Xamarin.Forms.VisualElement oldElement, Xamarin.Forms.VisualElement
newElement) [0x00104] in
C:\BuildAgent2\work\ca3766cfc22354a1\Xamarin.Forms.Platform.Android\VisualElementPackager.cs:207
12-12 16:06:08.750 I/MonoDroid(30698): at
Xamarin.Forms.Platform.Android.VisualElementPackager.Load () [0x00000]
in
C:\BuildAgent2\work\ca3766cfc22354a1\Xamarin.Forms.Platform.Android\VisualElementPackager.cs:58
12-12 16:06:08.750 I/MonoDroid(30698): at
Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].SetPackager
(Xamarin.Forms.Platform.Android.VisualElementPackager packager)
[0x00007] in
C:\BuildAgent2\work\ca3766cfc22354a1\Xamarin.Forms.Platform.Android\VisualElementRenderer.cs:337
12-12 16:06:08.750 I/MonoDroid(30698): at
Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].SetElement
(TElement element) [0x00111] in
C:\BuildAgent2\work\ca3766cfc22354a1\Xamarin.Forms.Platform.Android\VisualElementRenderer.cs:196
12-12 16:06:08.750 I/MonoDroid(30698): at
Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].Xamarin.Forms.Platform.Android.IVisualElementRenderer.SetElement
(Xamarin.Forms.VisualElement element) [0x00027] in
C:\BuildAgent2\work\ca3766cfc22354a1\Xamarin.Forms.Platform.Android\VisualElementRenderer.cs:129
12-12 16:06:08.750 I/MonoDroid(30698): at
Xamarin.Forms.Platform.Android.Platform.CreateRenderer
(Xamarin.Forms.VisualElement element) [0x0001f] in
C:\BuildAgent2\work\ca3766cfc22354a1\Xamarin.Forms.Platform.Android\Platform.cs:289
12-12 16:06:08.750 I/MonoDroid(30698): at
Xamarin.Forms.Platform.Android.AppCompat.Platform.AddChild
(Xamarin.Forms.Page page, System.Boolean layout) [0x00015] in
C:\BuildAgent2\work\ca3766cfc22354a1\Xamarin.Forms.Platform.Android\AppCompat\Platform.cs:250
12-12 16:06:08.750 I/MonoDroid(30698): at
Xamarin.Forms.Platform.Android.AppCompat.Platform.SetPage
(Xamarin.Forms.Page newRoot) [0x00089] in
C:\BuildAgent2\work\ca3766cfc22354a1\Xamarin.Forms.Platform.Android\AppCompat\Platform.cs:239
12-12 16:06:08.750 I/MonoDroid(30698): at
Xamarin.Forms.Platform.Android.FormsAppCompatActivity.InternalSetPage
(Xamarin.Forms.Page page) [0x0009b] in
C:\BuildAgent2\work\ca3766cfc22354a1\Xamarin.Forms.Platform.Android\AppCompat\FormsAppCompatActivity.cs:374
12-12 16:06:08.750 I/MonoDroid(30698): at
Xamarin.Forms.Platform.Android.FormsAppCompatActivity.SetMainPage ()
[0x00000] in
C:\BuildAgent2\work\ca3766cfc22354a1\Xamarin.Forms.Platform.Android\AppCompat\FormsAppCompatActivity.cs:444
12-12 16:06:08.750 I/MonoDroid(30698): at
Xamarin.Forms.Platform.Android.FormsAppCompatActivity.LoadApplication
(Xamarin.Forms.Application application) [0x00183] in
C:\BuildAgent2\work\ca3766cfc22354a1\Xamarin.Forms.Platform.Android\AppCompat\FormsAppCompatActivity.cs:135
12-12 16:06:08.750 I/MonoDroid(30698): at
SyncfusionTest.Droid.MainActivity.OnCreate (Android.OS.Bundle bundle)
[0x00027] in
D:\Workspaces\ResearchLab\SyncfusionTest\SyncfusionTest\SyncfusionTest.Droid\MainActivity.cs:23
12-12 16:06:08.750 I/MonoDroid(30698): at
Android.Support.V4.App.FragmentActivity.n_OnCreate_Landroid_os_Bundle_
(System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr
native_savedInstanceState) [0x00011] in
<27c17fe440cf491ba8255bcefade6e02>:0
12-12 16:06:08.750
I/MonoDroid(30698): at (wrapper dynamic-method)
System.Object:682b3bc8-19ce-4b06-b3d1-38a1b03ac331
(intptr,intptr,intptr)
Attachment:
SyncfusionTest_2510b5b3.zip