- Home
- Forum
- Xamarin.Forms
- Grid breaks after last update version
Grid breaks after last update version
hi all,
i have this issue with last grid version.
2017-12-29 00:27:23.300 IXApp.iOS[8088:3516966]
Unhandled Exception:
System.NullReferenceException: Object reference not set to an instance of an object
at Syncfusion.SfDataGrid.XForms.RowGenerator.CreateDataRow (System.Int32 rowIndex, Syncfusion.GridCommon.ScrollAxis.VisibleLinesCollection visibleColumns, Syncfusion.SfDataGrid.XForms.RowRegion region) [0x001fd] in <07ed0835200b40a5911d90f6c5954de2>:0
at Syncfusion.SfDataGrid.XForms.RowGenerator.EnsureRows (Syncfusion.GridCommon.ScrollAxis.VisibleLinesCollection visibleRows, Syncfusion.GridCommon.ScrollAxis.VisibleLinesCollection visibleColumns) [0x001e0] in <07ed0835200b40a5911d90f6c5954de2>:0
at Syncfusion.SfDataGrid.XForms.VisualContainer.ensureItems (System.Boolean needToRefresh) [0x0002a] in <07ed0835200b40a5911d90f6c5954de2>:0
at Syncfusion.SfDataGrid.XForms.VisualContainer.OnSizeAllocated (System.Double width, System.Double height) [0x00271] in <07ed0835200b40a5911d90f6c5954de2>:0
at Xamarin.Forms.VisualElement.SizeAllocated (System.Doub
le width, System.Double height) [0x00000] in D:\agent\_work\1\s\Xamarin.Forms.Core\VisualElement.cs:637
at Xamarin.Forms.Layout.ForceLayout () [0x00000] in D:\agent\_work\1\s\Xamarin.Forms.Core\Layout.cs:115
at Syncfusion.SfDataGrid.XForms.GridSelectionController.RefreshSelection () [0x0010e] in <07ed0835200b40a5911d90f6c5954de2>:0
at Syncfusion.SfDataGrid.XForms.GridSelectionController.ProcessSourceCollectionChanged (System.Collections.Specialized.NotifyCollectionChangedEventArgs e, Syncfusion.SfDataGrid.XForms.CollectionChangedReason reason) [0x001df] in <07ed0835200b40a5911d90f6c5954de2>:0
at Syncfusion.SfDataGrid.XForms.GridSelectionController.HandleCollectionChanged (System.Collections.Specialized.NotifyCollectionChangedEventArgs e, Syncfusion.SfDataGrid.XForms.CollectionChangedReason reason) [0x0000c] in <07ed0835200b40a5911d90f6c5954de2>:0
at Syncfusion.SfDataGrid.XForms.GridModel.OnRecordCollectionChanged (System.Object sender, System.Collections.Specialized.NotifyCollectionChangedEvent
Args e) [0x00134] in <07ed0835200b40a5911d90f6c5954de2>:0
at Syncfusion.Data.CollectionViewAdv.RaiseCollectionChangedEvent (System.Collections.Specialized.NotifyCollectionChangedEventArgs args) [0x00008] in <25b98b7b5c88470fbbbb56ddefa28cc1>:0
at Syncfusion.Data.CollectionViewAdv.RefreshView (System.Collections.Specialized.NotifyCollectionChangedEventArgs args) [0x00000] in <25b98b7b5c88470fbbbb56ddefa28cc1>:0
at Syncfusion.Data.CollectionViewAdv.Refresh () [0x00038] in <25b98b7b5c88470fbbbb56ddefa28cc1>:0
at Syncfusion.Data.CollectionViewAdv.EndDeferInternal () [0x000eb] in <25b98b7b5c88470fbbbb56ddefa28cc1>:0
at Syncfusion.Data.CollectionViewAdv.EndDefer () [0x00008] in <25b98b7b5c88470fbbbb56ddefa28cc1>:0
at Syncfusion.Data.CollectionViewAdv+DeferHelper.Dispose (System.Boolean isDisposing) [0x00014] in <25b98b7b5c88470fbbbb56ddefa28cc1>:0
at Syncfusion.Data.CollectionViewAdv+DeferHelper.Dispose () [0x00000] in <25b98b7b5c88470fbbbb56ddefa28cc1>:0
at Syncfusion.SfDataGrid.XForms.SfDa
taGrid.DeferRefresh () [0x00064] in <07ed0835200b40a5911d90f6c5954de2>:0
at Syncfusion.SfDataGrid.XForms.SfDataGrid.SetSourceList (System.Object source) [0x0000d] in <07ed0835200b40a5911d90f6c5954de2>:0
at Syncfusion.SfDataGrid.XForms.SfDataGrid.OnItemsSourceChanged (Xamarin.Forms.BindableObject bindable, System.Object oldValue, System.Object newValue) [0x0026e] in <07ed0835200b40a5911d90f6c5954de2>:0
at Xamarin.Forms.BindableObject.SetValueActual (Xamarin.Forms.BindableProperty property, Xamarin.Forms.BindableObject+BindablePropertyContext context, System.Object value, System.Boolean currentlyApplying, Xamarin.Forms.Internals.SetValueFlags attributes, System.Boolean silent) [0x0011b] in D:\agent\_work\1\s\Xamarin.Forms.Core\BindableObject.cs:597
at Xamarin.Forms.BindableObject.SetValueCore (Xamarin.Forms.BindableProperty property, System.Object value, Xamarin.Forms.Internals.SetValueFlags attributes, Xamarin.Forms.BindableObject+SetValuePrivateFlags privateAttributes) [0x0015b] in D:\agent\_work\
1\s\Xamarin.Forms.Core\BindableObject.cs:391
at Xamarin.Forms.BindingExpression.ApplyCore (System.Object sourceObject, Xamarin.Forms.BindableObject target, Xamarin.Forms.BindableProperty property, System.Boolean fromTarget) [0x001f9] in D:\agent\_work\1\s\Xamarin.Forms.Core\BindingExpression.cs:174
at Xamarin.Forms.BindingExpression.Apply (System.Boolean fromTarget) [0x0003e] in D:\agent\_work\1\s\Xamarin.Forms.Core\BindingExpression.cs:56
at Xamarin.Forms.BindingExpression+BindingExpressionPart.b__47_0 () [0x00000] in D:\agent\_work\1\s\Xamarin.Forms.Core\BindingExpression.cs:551
at Foundation.NSAsyncActionDispatcher.Apply () [0x00000] in /Users/builder/data/lanes/5665/6857dfcc/source/xamarin-macios/src/Foundation/NSAction.cs:163
at (wrapper managed-to-native) UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr)
at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005] in /Users/builder/data/lanes/5665/6857dfc
c/source/xamarin-macios/src/UIKit/UIApplication.cs:79
at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x00038] in /Users/builder/data/lanes/5665/6857dfcc/source/xamarin-macios/src/UIKit/UIApplication.cs:63
at IXApp.iOS.Application.Main (System.String[] args) [0x00001] in D:\Dev\Updater\IXApp\IXApp.iOS\Main.cs:17
SIGN IN To post a reply.
38 Replies
LU
Luca
December 29, 2017 12:03 AM UTC
with previous version v15.4.0.17 all works fine.
i have a Picker where i select different string and based on this a grid is refreshed.
now with last version v15.4.0.20 it breaks after 1 or 2 times of picker value changed.
BT
Burak Tugan
December 29, 2017 04:41 AM UTC
Grid also breaks as soon as you assign anything directly to its data source (in my case it is a list of objects in a generic collection). I also reverted back to *.17 version which works.
TO
Tolgahan
December 29, 2017 07:30 AM UTC
After updated Syncfusion to the v15.4.0.20, I have similar issue on Android, however iOS works well. (Also this issue occurs in v15.4.0.17.)
In a page, I have a data grid and stacklayout. Data grid created first, then stacklayout created and after that data grid is added as children to the stacklayout. My program breaks at this step and NullReference error returns me.
Is anybody has a solution except downgrading Syncfusion version?
EM
Emil
December 29, 2017 05:29 PM UTC
I think that Syncfusion should consider working with pre-release versions. it is frustrating and time consuming for us to update and roll back everytime. I dont remember any single release without crucial bugs. I appreciate hard work and great tools but please consider working with pre-releases that we can test before it goes to production. otherwise for such fixes, we need to wait another month. and if I update to one tool, i have to update all. because some tools share some sub tools like datasource component is shared by sflistview and sfdatagrid etc.
SS
Sivaraman Sivagurunathan
Syncfusion Team
January 2, 2018 07:13 PM UTC
Hi alberto,
Thank you for using Syncfusion Products.
We have checked your query and have tried to reproduce the issue from our side, but the issue does not replicate from our side. We have attached the sample that we tested which were created based on your updates for your reference and you can download the same from below link.
We are continuing to work in our side to fix the reported issue based on call trace provided. Meanwhile, it will be useful if you could provide us the below details.
- What are the settings that you have applied for SfDataGrid and its parent?
- Is it possible to share your XAML code for our reference to replicate the issue in our side.
- Also, please let us know what version of Xamarin and Xamarin.Forms are you using?
Regards,
Sivaraman
LU
Luca
January 2, 2018 08:11 PM UTC
hi all,
i think that there is a bug...
anyway
grid details:
<syncfusion:SfDataGrid Grid.Row="5" Grid.Column="0" x:Name="dg" ColumnSizer="Star" AutoGenerateColumns="False" VerticalOptions="FillAndExpand" HeightRequest="400"
ItemsSource="{Binding DataDetail}" AllowGroupExpandCollapse="False" AutoExpandGroups="True" ScrollingMode="PixelLine" AllowSorting="False" >
<syncfusion:SfDataGrid.GroupColumnDescriptions>
<syncfusion:GroupColumnDescription ColumnName="KEY2" />
</syncfusion:SfDataGrid.GroupColumnDescriptions>
tell me if you need anything else.
thanks a lot for your effort!
SS
Sivaraman Sivagurunathan
Syncfusion Team
January 4, 2018 04:09 AM UTC
Hi alberto,
Thanks for your patience.
We are checked your code snippet and try to reproduce the issue using your code snippet form our side. But the issue does not reproduce from side. We have attached the sample we checked for your reference and you can download the same from the below location.
Can you please share more details about how you are using the DataGrid or if you could please replicate the issue in attached sample with clear replication procedure, it will be useful to provide the better solution.
Regards,
Sivaraman
Hi alberto,Thanks for your patience.We are checked your code snippet and try to reproduce the issue using your code snippet form our side. But the issue does not reproduce from side. We have attached the sample we checked for your reference and you can download the same from the below location.Can you please share more details about how you are using the DataGrid or if you could please replicate the issue in attached sample with clear replication procedure, it will be useful to provide the better solution.Regards,Sivaraman
@Sivaraman Sivagurunathan what do you think about my post?
Edit: Error is something like:
System.NullReferenceException: Object reference not set to an instance of an object.
at Syncfusion.SfDataGrid.XForms.Droid.ExtendedScrollViewRenderer.OnElementChanged (Xamarin.Forms.Platform.Android.ElementChangedEventArgs`1[TElement] e) [0x00061] in <7ff5c9cfa9474956970d35efb023ef5d>:0
After updated Syncfusion to the v15.4.0.20, I have similar issue on Android, however iOS works well. (Also this issue occurs in v15.4.0.17.)
In a page, I have a data grid and stacklayout. Data grid created first, then stacklayout created and after that data grid is added as children to the stacklayout. My program breaks at this step and NullReference error returns me.
Is anybody has a solution except downgrading Syncfusion version?
BT
Burak Tugan
January 5, 2018 09:40 AM UTC
To reproduce on UWP - create any grid and set the data source to a list of objects. Boom! I did not check iOS or Android.
Hi alberto,Thanks for your patience.We are checked your code snippet and try to reproduce the issue using your code snippet form our side. But the issue does not reproduce from side. We have attached the sample we checked for your reference and you can download the same from the below location.Can you please share more details about how you are using the DataGrid or if you could please replicate the issue in attached sample with clear replication procedure, it will be useful to provide the better solution.Regards,Sivaraman
@Sivaraman Sivagurunathan what do you think about my post?Edit: Error is something like:System.NullReferenceException: Object reference not set to an instance of an object.at Syncfusion.SfDataGrid.XForms.Droid.ExtendedScrollViewRenderer.OnElementChanged (Xamarin.Forms.Platform.Android.ElementChangedEventArgs`1[TElement] e) [0x00061] in <7ff5c9cfa9474956970d35efb023ef5d>:0After updated Syncfusion to the v15.4.0.20, I have similar issue on Android, however iOS works well. (Also this issue occurs in v15.4.0.17.)In a page, I have a data grid and stacklayout. Data grid created first, then stacklayout created and after that data grid is added as children to the stacklayout. My program breaks at this step and NullReference error returns me.Is anybody has a solution except downgrading Syncfusion version?
I have good news. When I was updating Syncfusion, I overwrited directly to my old Syncfusion files using Nuget Manager. Today, I removed all Syncfusion files and installation from Nuger Manager, and then I did clear installation for lastest version. Now everything works well.
Sincerely
EM
Emil
January 5, 2018 05:44 PM UTC
No it doesnt work. I cleared all nuget cach, bin, obj folders. Are you using latest Android Support packages? Syncfusion team uses always old support packages and I believe it is related to this on Android. But it is said that it is problem on UWP as well. make sure you have updated all your packages, see your consolidate tab. if one of the dependency package is using v17, it still works.
this is the full exception stack i am getting
01-05 18:40:09.074 I/MonoDroid(19342): UNHANDLED EXCEPTION:
01-05 18:40:09.095 I/MonoDroid(19342): System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
01-05 18:40:09.095 I/MonoDroid(19342): Parameter name: index
01-05 18:40:09.095 I/MonoDroid(19342): at System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) [0x00029] in <657aa8fea4454dc898a9e5f379c58734>:0
01-05 18:40:09.095 I/MonoDroid(19342): at System.ThrowHelper.ThrowArgumentOutOfRangeException () [0x00000] in <657aa8fea4454dc898a9e5f379c58734>:0
01-05 18:40:09.095 I/MonoDroid(19342): at System.Collections.Generic.List`1[T].get_Item (System.Int32 index) [0x00009] in <657aa8fea4454dc898a9e5f379c58734>:0
01-05 18:40:09.095 I/MonoDroid(19342): at System.Collections.ObjectModel.Collection`1[T].get_Item (System.Int32 index) [0x00000] in <657aa8fea4454dc898a9e5f379c58734>:0
01-05 18:40:09.095 I/MonoDroid(19342): at Syncfusion.Data.RecordsListBase.GetRecord (System.Int32 index) [0x00000] in <25b98b7b5c88470fbbbb56ddefa28cc1>:0
01-05 18:40:09.095 I/MonoDroid(19342): at Syncfusion.Data.RecordsListBase.get_Item (System.Int32 index) [0x00000] in <25b98b7b5c88470fbbbb56ddefa28cc1>:0
01-05 18:40:09.095 I/MonoDroid(19342): at Syncfusion.SfDataGrid.XForms.RowGenerator.CreateDataRow (System.Int32 rowIndex, Syncfusion.GridCommon.ScrollAxis.VisibleLinesCollection visibleColumns, Syncfusion.SfDataGrid.XForms.RowRegion region) [0x00054] in <07ed0835200b40a5911d90f6c5954de2>:0
01-05 18:40:09.095 I/MonoDroid(19342): at Syncfusion.SfDataGrid.XForms.RowGenerator.EnsureRows (Syncfusion.GridCommon.ScrollAxis.VisibleLinesCollection visibleRows, Syncfusion.GridCommon.ScrollAxis.VisibleLinesCollection visibleColumns) [0x001e0] in <07ed0835200b40a5911d90f6c5954de2>:0
01-05 18:40:09.095 I/MonoDroid(19342): at Syncfusion.SfDataGrid.XForms.VisualContainer.ensureItems (System.Boolean needToRefresh) [0x0002a] in <07ed0835200b40a5911d90f6c5954de2>:0
01-05 18:40:09.095 I/MonoDroid(19342): at Syncfusion.SfDataGrid.XForms.VisualContainer.OnSizeAllocated (System.Double width, System.Double height) [0x00261] in <07ed0835200b40a5911d90f6c5954de2>:0
01-05 18:40:09.095 I/MonoDroid(19342): at Xamarin.Forms.VisualElement.SizeAllocated (System.Double width, System.Double height) [0x00000] in D:\agent\_work\1\s\Xamarin.Forms.Core\VisualElement.cs:637
01-05 18:40:09.095 I/MonoDroid(19342): at Xamarin.Forms.Layout.ForceLayout () [0x00000] in D:\agent\_work\1\s\Xamarin.Forms.Core\Layout.cs:115
01-05 18:40:09.095 I/MonoDroid(19342): at Syncfusion.SfDataGrid.XForms.GridSelectionController.RefreshSelection () [0x0010e] in <07ed0835200b40a5911d90f6c5954de2>:0
01-05 18:40:09.095 I/MonoDroid(19342): at Syncfusion.SfDataGrid.XForms.GridSelectionController.ProcessSourceCollectionChanged (System.Collections.Specialized.NotifyCollectionChangedEventArgs e, Syncfusion.SfDataGrid.XForms.CollectionChangedReason reason) [0x001df] in <07ed0835200b40a5911d90f6c5954de2>:0
01-05 18:40:09.095 I/MonoDroid(19342): at Syncfusion.SfDataGrid.XForms.GridSelectionController.HandleCollectionChanged (System.Collections.Specialized.NotifyCollectionChangedEventArgs e, Syncfusion.SfDataGrid.XForms.CollectionChangedReason reason) [0x0000c] in <07ed0835200b40a5911d90f6c5954de2>:0
01-05 18:40:09.095 I/MonoDroid(19342): at Syncfusion.SfDataGrid.XForms.GridModel.OnRecordCollectionChanged (System.Object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e) [0x00134] in <07ed0835200b40a5911d90f6c5954de2>:0
01-05 18:40:09.095 I/MonoDroid(19342): at Syncfusion.Data.CollectionViewAdv.RaiseCollectionChangedEvent (System.Collections.Specialized.NotifyCollectionChangedEventArgs args) [0x00008] in <25b98b7b5c88470fbbbb56ddefa28cc1>:0
01-05 18:40:09.095 I/MonoDroid(19342): at Syncfusion.Data.CollectionViewAdv.RefreshView (System.Collections.Specialized.NotifyCollectionChangedEventArgs args) [0x00000] in <25b98b7b5c88470fbbbb56ddefa28cc1>:0
01-05 18:40:09.095 I/MonoDroid(19342): at Syncfusion.Data.CollectionViewAdv.Refresh () [0x00038] in <25b98b7b5c88470fbbbb56ddefa28cc1>:0
01-05 18:40:09.095 I/MonoDroid(19342): at Syncfusion.Data.CollectionViewAdv.EndDeferInternal () [0x000eb] in <25b98b7b5c88470fbbbb56ddefa28cc1>:0
01-05 18:40:09.095 I/MonoDroid(19342): at Syncfusion.Data.CollectionViewAdv.EndDefer () [0x00008] in <25b98b7b5c88470fbbbb56ddefa28cc1>:0
01-05 18:40:09.095 I/MonoDroid(19342): at Syncfusion.Data.CollectionViewAdv+DeferHelper.Dispose (System.Boolean isDisposing) [0x00014] in <25b98b7b5c88470fbbbb56ddefa28cc1>:0
01-05 18:40:09.095 I/MonoDroid(19342): at Syncfusion.Data.CollectionViewAdv+DeferHelper.Dispose () [0x00000] in <25b98b7b5c88470fbbbb56ddefa28cc1>:0
01-05 18:40:09.095 I/MonoDroid(19342): at Syncfusion.SfDataGrid.XForms.SfDataGrid.DeferRefresh () [0x00064] in <07ed0835200b40a5911d90f6c5954de2>:0
01-05 18:40:09.095 I/MonoDroid(19342): at Syncfusion.SfDataGrid.XForms.SfDataGrid.SetSourceList (System.Object source) [0x0000d] in <07ed0835200b40a5911d90f6c5954de2>:0
01-05 18:40:09.095 I/MonoDroid(19342): at Syncfusion.SfDataGrid.XForms.SfDataGrid.OnItemsSourceChanged (Xamarin.Forms.BindableObject bindable, System.Object oldValue, System.Object newValue) [0x0026e] in <07ed0835200b40a5911d90f6c5954de2>:0
LU
Luca
January 6, 2018 09:32 AM UTC
i cleaned up nuget, restaill all but nothing changed.
here the exception i get
Unhandled Exception:
System.NullReferenceException: Object reference not set to an instance of an object
at Syncfusion.SfDataGrid.XForms.RowGenerator.CreateDataRow (System.Int32 rowIndex, Syncfusion.GridCommon.ScrollAxis.VisibleLinesCollection visibleColumns, Syncfusion.SfDataGrid.XForms.RowRegion region) [0x001fd] in <07ed0835200b40a5911d90f6c5954de2>:0
at Syncfusion.SfDataGrid.XForms.RowGenerator.EnsureRows (Syncfusion.GridCommon.ScrollAxis.VisibleLinesCollection visibleRows, Syncfusion.GridCommon.ScrollAxis.VisibleLinesCollection visibleColumns) [0x001e0] in <07ed0835200b40a5911d90f6c5954de2>:0
at Syncfusion.SfDataGrid.XForms.VisualContainer.ensureItems (System.Boolean needToRefresh) [0x0002a] in <07ed0835200b40a5911d90f6c5954de2>:0
at Syncfusion.SfDataGrid.XForms.VisualContainer.OnSizeAllocated (System.Double width, System.Double height) [0x00271] in <07ed0835200b40a5911d90f6c5954de2>:0
at Xamarin.Forms.VisualElement.SizeAllocated (System.Doub
le width, System.Double height) [0x00000] in D:\agent\_work\1\s\Xamarin.Forms.Core\VisualElement.cs:637
at Xamarin.Forms.Layout.ForceLayout () [0x00000] in D:\agent\_work\1\s\Xamarin.Forms.Core\Layout.cs:115
at Syncfusion.SfDataGrid.XForms.GridSelectionController.RefreshSelection () [0x0010e] in <07ed0835200b40a5911d90f6c5954de2>:0
at Syncfusion.SfDataGrid.XForms.GridSelectionController.ProcessSourceCollectionChanged (System.Collections.Specialized.NotifyCollectionChangedEventArgs e, Syncfusion.SfDataGrid.XForms.CollectionChangedReason reason) [0x001df] in <07ed0835200b40a5911d90f6c5954de2>:0
at Syncfusion.SfDataGrid.XForms.GridSelectionController.HandleCollectionChanged (System.Collections.Specialized.NotifyCollectionChangedEventArgs e, Syncfusion.SfDataGrid.XForms.CollectionChangedReason reason) [0x0000c] in <07ed0835200b40a5911d90f6c5954de2>:0
at Syncfusion.SfDataGrid.XForms.GridModel.OnRecordCollectionChanged (System.Object sender, System.Collections.Specialized.NotifyCollectionChangedEvent
Args e) [0x00134] in <07ed0835200b40a5911d90f6c5954de2>:0
at Syncfusion.Data.CollectionViewAdv.RaiseCollectionChangedEvent (System.Collections.Specialized.NotifyCollectionChangedEventArgs args) [0x00008] in <25b98b7b5c88470fbbbb56ddefa28cc1>:0
at Syncfusion.Data.CollectionViewAdv.RefreshView (System.Collections.Specialized.NotifyCollectionChangedEventArgs args) [0x00000] in <25b98b7b5c88470fbbbb56ddefa28cc1>:0
at Syncfusion.Data.CollectionViewAdv.Refresh () [0x00038] in <25b98b7b5c88470fbbbb56ddefa28cc1>:0
at Syncfusion.Data.CollectionViewAdv.EndDeferInternal () [0x000eb] in <25b98b7b5c88470fbbbb56ddefa28cc1>:0
at Syncfusion.Data.CollectionViewAdv.EndDefer () [0x00008] in <25b98b7b5c88470fbbbb56ddefa28cc1>:0
at Syncfusion.Data.CollectionViewAdv+DeferHelper.Dispose (System.Boolean isDisposing) [0x00014] in <25b98b7b5c88470fbbbb56ddefa28cc1>:0
at Syncfusion.Data.CollectionViewAdv+DeferHelper.Dispose () [0x00000] in <25b98b7b5c88470fbbbb56ddefa28cc1>:0
at Syncfusion.SfDataGrid.XForms.SfDa
taGrid.DeferRefresh () [0x00064] in <07ed0835200b40a5911d90f6c5954de2>:0
at Syncfusion.SfDataGrid.XForms.SfDataGrid.SetSourceList (System.Object source) [0x0000d] in <07ed0835200b40a5911d90f6c5954de2>:0
at Syncfusion.SfDataGrid.XForms.SfDataGrid.OnItemsSourceChanged (Xamarin.Forms.BindableObject bindable, System.Object oldValue, System.Object newValue) [0x0026e] in <07ed0835200b40a5911d90f6c5954de2>:0
at Xamarin.Forms.BindableObject.SetValueActual (Xamarin.Forms.BindableProperty property, Xamarin.Forms.BindableObject+BindablePropertyContext context, System.Object value, System.Boolean currentlyApplying, Xamarin.Forms.Internals.SetValueFlags attributes, System.Boolean silent) [0x0011b] in D:\agent\_work\1\s\Xamarin.Forms.Core\BindableObject.cs:597
at Xamarin.Forms.BindableObject.SetValueCore (Xamarin.Forms.BindableProperty property, System.Object value, Xamarin.Forms.Internals.SetValueFlags attributes, Xamarin.Forms.BindableObject+SetValuePrivateFlags privateAttributes) [0x0015b] in D:\agent\_work\
1\s\Xamarin.Forms.Core\BindableObject.cs:391
at Xamarin.Forms.BindingExpression.ApplyCore (System.Object sourceObject, Xamarin.Forms.BindableObject target, Xamarin.Forms.BindableProperty property, System.Boolean fromTarget) [0x001f9] in D:\agent\_work\1\s\Xamarin.Forms.Core\BindingExpression.cs:174
at Xamarin.Forms.BindingExpression.Apply (System.Boolean fromTarget) [0x0003e] in D:\agent\_work\1\s\Xamarin.Forms.Core\BindingExpression.cs:56
at Xamarin.Forms.BindingExpression+BindingExpressionPart.<PropertyChanged>b__47_0 () [0x00000] in D:\agent\_work\1\s\Xamarin.Forms.Core\BindingExpression.cs:551
at Foundation.NSAsyncActionDispatcher.Apply () [0x00000] in /Users/builder/data/lanes/5665/6857dfcc/source/xamarin-macios/src/Foundation/NSAction.cs:163
at (wrapper managed-to-native) UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr)
at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005] in /Users/builder/data/lanes/5665/6857dfc
c/source/xamarin-macios/src/UIKit/UIApplication.cs:79
at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x00038] in /Users/builder/data/lanes/5665/6857dfcc/source/xamarin-macios/src/UIKit/UIApplication.cs:63
at IXApp.iOS.Application.Main (System.String[] args) [0x00001] in D:\Dev\Updater\IXApp\IXApp.iOS\Main.cs:17
i cleaned up nuget, restaill all but nothing changed.here the exception i getUnhandled Exception:System.NullReferenceException: Object reference not set to an instance of an objectat Syncfusion.SfDataGrid.XForms.RowGenerator.CreateDataRow (System.Int32 rowIndex, Syncfusion.GridCommon.ScrollAxis.VisibleLinesCollection visibleColumns, Syncfusion.SfDataGrid.XForms.RowRegion region) [0x001fd] in <07ed0835200b40a5911d90f6c5954de2>:0at Syncfusion.SfDataGrid.XForms.RowGenerator.EnsureRows (Syncfusion.GridCommon.ScrollAxis.VisibleLinesCollection visibleRows, Syncfusion.GridCommon.ScrollAxis.VisibleLinesCollection visibleColumns) [0x001e0] in <07ed0835200b40a5911d90f6c5954de2>:0at Syncfusion.SfDataGrid.XForms.VisualContainer.ensureItems (System.Boolean needToRefresh) [0x0002a] in <07ed0835200b40a5911d90f6c5954de2>:0at Syncfusion.SfDataGrid.XForms.VisualContainer.OnSizeAllocated (System.Double width, System.Double height) [0x00271] in <07ed0835200b40a5911d90f6c5954de2>:0at Xamarin.Forms.VisualElement.SizeAllocated (System.Double width, System.Double height) [0x00000] in D:\agent\_work\1\s\Xamarin.Forms.Core\VisualElement.cs:637at Xamarin.Forms.Layout.ForceLayout () [0x00000] in D:\agent\_work\1\s\Xamarin.Forms.Core\Layout.cs:115at Syncfusion.SfDataGrid.XForms.GridSelectionController.RefreshSelection () [0x0010e] in <07ed0835200b40a5911d90f6c5954de2>:0at Syncfusion.SfDataGrid.XForms.GridSelectionController.ProcessSourceCollectionChanged (System.Collections.Specialized.NotifyCollectionChangedEventArgs e, Syncfusion.SfDataGrid.XForms.CollectionChangedReason reason) [0x001df] in <07ed0835200b40a5911d90f6c5954de2>:0at Syncfusion.SfDataGrid.XForms.GridSelectionController.HandleCollectionChanged (System.Collections.Specialized.NotifyCollectionChangedEventArgs e, Syncfusion.SfDataGrid.XForms.CollectionChangedReason reason) [0x0000c] in <07ed0835200b40a5911d90f6c5954de2>:0at Syncfusion.SfDataGrid.XForms.GridModel.OnRecordCollectionChanged (System.Object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e) [0x00134] in <07ed0835200b40a5911d90f6c5954de2>:0at Syncfusion.Data.CollectionViewAdv.RaiseCollectionChangedEvent (System.Collections.Specialized.NotifyCollectionChangedEventArgs args) [0x00008] in <25b98b7b5c88470fbbbb56ddefa28cc1>:0at Syncfusion.Data.CollectionViewAdv.RefreshView (System.Collections.Specialized.NotifyCollectionChangedEventArgs args) [0x00000] in <25b98b7b5c88470fbbbb56ddefa28cc1>:0at Syncfusion.Data.CollectionViewAdv.Refresh () [0x00038] in <25b98b7b5c88470fbbbb56ddefa28cc1>:0at Syncfusion.Data.CollectionViewAdv.EndDeferInternal () [0x000eb] in <25b98b7b5c88470fbbbb56ddefa28cc1>:0at Syncfusion.Data.CollectionViewAdv.EndDefer () [0x00008] in <25b98b7b5c88470fbbbb56ddefa28cc1>:0at Syncfusion.Data.CollectionViewAdv+DeferHelper.Dispose (System.Boolean isDisposing) [0x00014] in <25b98b7b5c88470fbbbb56ddefa28cc1>:0at Syncfusion.Data.CollectionViewAdv+DeferHelper.Dispose () [0x00000] in <25b98b7b5c88470fbbbb56ddefa28cc1>:0at Syncfusion.SfDataGrid.XForms.SfDataGrid.DeferRefresh () [0x00064] in <07ed0835200b40a5911d90f6c5954de2>:0at Syncfusion.SfDataGrid.XForms.SfDataGrid.SetSourceList (System.Object source) [0x0000d] in <07ed0835200b40a5911d90f6c5954de2>:0at Syncfusion.SfDataGrid.XForms.SfDataGrid.OnItemsSourceChanged (Xamarin.Forms.BindableObject bindable, System.Object oldValue, System.Object newValue) [0x0026e] in <07ed0835200b40a5911d90f6c5954de2>:0at Xamarin.Forms.BindableObject.SetValueActual (Xamarin.Forms.BindableProperty property, Xamarin.Forms.BindableObject+BindablePropertyContext context, System.Object value, System.Boolean currentlyApplying, Xamarin.Forms.Internals.SetValueFlags attributes, System.Boolean silent) [0x0011b] in D:\agent\_work\1\s\Xamarin.Forms.Core\BindableObject.cs:597at Xamarin.Forms.BindableObject.SetValueCore (Xamarin.Forms.BindableProperty property, System.Object value, Xamarin.Forms.Internals.SetValueFlags attributes, Xamarin.Forms.BindableObject+SetValuePrivateFlags privateAttributes) [0x0015b] in D:\agent\_work\1\s\Xamarin.Forms.Core\BindableObject.cs:391at Xamarin.Forms.BindingExpression.ApplyCore (System.Object sourceObject, Xamarin.Forms.BindableObject target, Xamarin.Forms.BindableProperty property, System.Boolean fromTarget) [0x001f9] in D:\agent\_work\1\s\Xamarin.Forms.Core\BindingExpression.cs:174at Xamarin.Forms.BindingExpression.Apply (System.Boolean fromTarget) [0x0003e] in D:\agent\_work\1\s\Xamarin.Forms.Core\BindingExpression.cs:56at Xamarin.Forms.BindingExpression+BindingExpressionPart.<PropertyChanged>b__47_0 () [0x00000] in D:\agent\_work\1\s\Xamarin.Forms.Core\BindingExpression.cs:551at Foundation.NSAsyncActionDispatcher.Apply () [0x00000] in /Users/builder/data/lanes/5665/6857dfcc/source/xamarin-macios/src/Foundation/NSAction.cs:163at (wrapper managed-to-native) UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr)at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005] in /Users/builder/data/lanes/5665/6857dfcc/source/xamarin-macios/src/UIKit/UIApplication.cs:79at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x00038] in /Users/builder/data/lanes/5665/6857dfcc/source/xamarin-macios/src/UIKit/UIApplication.cs:63at IXApp.iOS.Application.Main (System.String[] args) [0x00001] in D:\Dev\Updater\IXApp\IXApp.iOS\Main.cs:17
I get exactly the same error on UWP.
Syncfusion support - you need to pay attention to this one !
SS
Sivaraman Sivagurunathan
Syncfusion Team
January 8, 2018 06:52 AM UTC
Hi Halil / Emil / Alberto,
We are sorry about the inconvenience caused.
We have checked your query and based on the call stack given we are confirming that the reported issue “NullReferenceException & ArgumentOutOfRangeException when changing ItemsSource with Selection in latest Xamarin Version” is a defect and we have logged a defect report for the same. We will fix the issue and include it in the upcoming volume release. We appreciate your patience until then.
Regards,
Sivaraman
LU
Luca
January 8, 2018 01:36 PM UTC
hi all,
is there a date for that?
thanks
SS
Sivaraman Sivagurunathan
Syncfusion Team
January 9, 2018 09:09 AM UTC
Hi alberto,
We were able to reproduce the NullReferenceException & ArgumentOutOfRangeException when changing ItemsSource with Selection and the fix for the issue is estimated to be available on or before January 10, 2018. We will post the custom assemblies for the fix in this forum and fix will be included in the upcoming volume release. We appreciate your patience until then.
Regards,
Sivaraman
SS
Sivaraman Sivagurunathan
Syncfusion Team
January 10, 2018 06:18 PM UTC
Hi alberto,
Thanks for your patience.
We have fixed the reported “NullReferenceException & ArgumentOutOfRangeException when changing ItemsSource with Selection” issue and generated the custom assemblies in 15.4.0.20 and is available for download under the following link. This fix will be included in our 2018 Vol 1 main release which is scheduled to roll out by the end of February, 2017. We appreciate your patience until then.
The above assembly should replace the dll in the below mentioned location.
{Syncfusion Installed location}\Essential Studio\15.4.0. 20 \Xamarin\lib\pcl\Syncfusion.SfDataGrid.XForms.dll
{Syncfusion Installed location}\Essential Studio\15.4.0. 20 \Xamarin\lib\android\Syncfusion.SfDataGrid.XForms.dll
{Syncfusion Installed location}\Essential Studio\15.4.0. 20 \Xamarin\lib\android\Syncfusion.SfDataGrid.XForms.Android.dll
{Syncfusion Installed location}\Essential Studio\15.4.0. 20 \Xamarin\lib\ios-unified\Syncfusion.SfDataGrid.XForms.dll
{Syncfusion Installed location}\Essential Studio\15.4.0. 20 \Xamarin\lib\ios-unified\Syncfusion.SfDataGrid.XForms.iOS.dll
{Syncfusion Installed location}\Essential Studio\15.4.0. 20 \Xamarin\lib\uwp\Syncfusion.SfDataGrid.XForms.dll
{Syncfusion Installed location}\Essential Studio\15.4.0. 20 \Xamarin\lib\uwp\Syncfusion.SfDataGrid.XForms.UWP.dll
Disclaimer: Please note that we have created this assembly for the version 15.4.0. 20 specifically to resolve the query requested in this incident 193165.
Disclaimer: Please note that we have created this assembly for the version 15.4.0. 20 specifically to resolve the query requested in this incident 193165.
Regards,
Sivaraman
EM
Emil
January 10, 2018 07:02 PM UTC
Hi,
Would you maybe consider in the future some other nuget Channel for such fixes? Because it is really hard to track all custom nugets on our local Paths. Beside that if i find 2 issues and you fix both you provide me 2 custom assemblies but i am not being sure if assemblies have both fixes. it will be very helpful to have some beta or alpha Channel for upcoming Version. You might not to include your development but only for Bug fixing for stable Version.
Thanks,
Emil
SS
Sivaraman Sivagurunathan
Syncfusion Team
January 11, 2018 07:14 PM UTC
Hi Emil,
Thanks for your update:
We have checked your query. We maintain the private branch for each licensed customer. So we provide the custom assemblies with fixes for all the bugs reported by you. In case, if we post the custom assemblies in forum, we have to maintain the common branch for the fix. so you need not worry about missing issue fixes. Please use the latest assemblies given to you in any of the support tickets which will have all the fixes reported by you consolidated together.
Regards,
Sivaraman
LU
Luca
January 17, 2018 10:27 AM UTC
in ios is ok, but on android are you sure that has been fixed?
thanks
JO
John
January 17, 2018 07:19 PM UTC
I just installed 15.4.0.20 into a brand new Xamarin.Forms project (VS2017 latest update applied, 15.5.4). When I set the ItemsSource to a List with no defined columns in the XAML it works just fine, when I define the columns and set AutoGenerate to false I get the following error:
System.ArgumentOutOfRangeException: 'Index was out of range. Must be non-negative and less than the size of the collection.'
Here is my XAML (to make it work I simply set AutoGenerateColumns to true and remove the .Columns section:
<sfdg:SfDataGrid x:Name="RankingDataGrid"
ColumnSizer="Star"
AutoGenerateColumns="False">
<sfdg:SfDataGrid.Columns x:TypeArguments="syncfusion:Columns">
<sfdg:GridTextColumn HeaderText="Rank"
MappingName="National.Current.Rank" />
<sfdg:GridTextColumn HeaderText="Team"
MappingName="TeamName" />
<sfdg:GridTextColumn HeaderText="Wins"
MappingName="National.Current.Wins" />
<sfdg:GridTextColumn HeaderText="Loses"
MappingName="National.Current.Losses" />
<sfdg:GridTextColumn HeaderText="Matches"
MappingName="National.Current.Matches" />
<sfdg:GridTextColumn HeaderText="Win %"
MappingName="National.Current.WinsRatio" />
</sfdg:SfDataGrid.Columns>
</sfdg:SfDataGrid>
LU
Luca
January 17, 2018 11:28 PM UTC
hi all,
Attachment: error_f353153b.zip
on android the error is still there (i uploaded a file with full error log)
01-18 00:24:20.070 I/MonoDroid( 4062): System.NullReferenceException: Object reference not set to an instance of an object.
01-18 00:24:20.070 I/MonoDroid( 4062): at Syncfusion.SfDataGrid.XForms.Droid.ExtendedScrollViewRenderer.OnElementChanged (Xamarin.Forms.Platform.Android.ElementChangedEventArgs`1[TElement] e) [0x00061] in <672233e626ad4788a7b3187c42aa2ed7>:0
01-18 00:24:20.070 I/MonoDroid( 4062): at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].SetElement (TElement element) [0x000b1] in D:\agent\_work\1\s\Xamarin.Forms.Platform.Android\VisualElementRenderer.cs:176
01-18 00:24:20.070 I/MonoDroid( 4062): at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].Xamarin.Forms.Platform.Android.IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element) [0x00027] in D:\agent\_work\1\s\Xamarin.Forms.Platform.Android\VisualElementRenderer.cs:125
01-18 00:24:20.070 I/MonoDroid( 4062): at Xamarin.Forms.Platform.Android.Platform.CreateRenderer (Xamarin.Forms.VisualElement element, Android.Content.Context context) [0x00024] in D:\agent\_work\1\s\Xamarin.Forms.Platform.Android\Platform.cs:314
01-18 00:24:20.070 I/MonoDroid( 4062): 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) [0x00044] in D:\agent\_work\1\s\Xamarin.Forms.Platform.Android\VisualElementPackager.cs:97
01-18 00:24:20.070 I/MonoDroid( 4062): at Xamarin.Forms.Platform.Android.VisualElementPackager.SetElement (Xamarin.Forms.VisualElement oldElement, Xamarin.Forms.VisualElement newElement) [0x00104] in D:\agent\_work\1\s\Xamarin.Forms.Platform.Android\VisualElementPackager.cs:231
01-18 00:24:20.071 I/MonoDroid( 4062): at Xamarin.Forms.Platform.Android.VisualElementPackager.Load () [0x00000] in D:\agent\_work\1\s\Xamarin.Forms.Platform.Android\VisualElementPackager.cs:76
Attachment: error_f353153b.zip
SS
Sivaraman Sivagurunathan
Syncfusion Team
January 18, 2018 04:00 PM UTC
Hi alberto,
Thanks for contacting Syncfusion support.
We have checked your query. The reported issue will if both the Syncfusion.Xamarin.SfDataGrid and Syncfusion.Xamarin.SfDataGrid.Android NuGet packages in same project. Could you please confirm in your side whether you have installed only the Syncfusion.Xamarin.SfDataGrid NuGet in your Forms project?
Installing both will result in crash while inflating the ScrollViewer since the class is available in both the NuGet packages. Please refer the below UG link for more details about the assembly deployment in SfDataGrid.
Regards,
Sivaraman
MI
Misael
February 21, 2018 01:31 AM UTC
Hello!
I Have the same error, but I Have Community License , Can I have a pach also?
Version: 15.4451.0.20
SK
Shivagurunathan Kamalakannan
Syncfusion Team
February 21, 2018 12:57 PM UTC
Hi Misael,
Thanks for contacting Syncfusion Support,
We have checked your query. We have created a separate ticket for you. You can login into your account and you can follow up with further details. The patch has been delivered to you in the created ticket.
Note: The fix will be included in the upcoming releases.
Regards,
Shivagurunathan. K
EM
Emil
February 21, 2018 09:52 PM UTC
Hello,
how are supposed to use provided assemblies when we are on .net standard 2.0. SfDatagrid has dependency other packages and those needs to included installed together.
for example; i am not getting Syncfusion.Data.Extensions; namespace using just provided dlls.
EM
Emil
February 22, 2018 11:39 AM UTC
Hi,
I have just updated to latest version 16.1451.0.24 and this problem looks like resolved.
thanks,
Emil
SS
Sivaraman Sivagurunathan
Syncfusion Team
February 22, 2018 11:58 AM UTC
Hi Emil,
Thanks for the update. Please let us know in case any assists.
Regards,
Sivaraman
LU
Luca
February 25, 2018 05:16 PM UTC
updated to last version but now the heared row is white no more gray.... it is no easy to read...
SK
Shivagurunathan Kamalakannan
Syncfusion Team
February 27, 2018 04:00 AM UTC
Hi alberto,
Thanks for using syncfusion support.
We have change the default SfDataGrid style. You can customize the header color by using GetHeaderBackGroundColor override method. We have prepared the sample base on you requirement and attached sample for your refrence you can download the same from the below link.
Regards,
Sivaraman
SC
Shawn Castrianni
February 28, 2018 07:22 PM UTC
I have verified the custom dll's in http://www.syncfusion.com/downloads/support/directtrac/193165/ze/dlls-1852058599 solve this issue. However, there is no 15.4.0.21 that contains this fix. I cannot update to the latest 16.X version as there are other bugs there with cell style setters. So I need a new nuget published on the 15.4.0.X branch with this fix so that I do not have to maintain these custom assemblies in my build. Thanks.
SS
Sivaraman Sivagurunathan
Syncfusion Team
March 2, 2018 03:39 AM UTC
HI Shawn,
Thanks for contacting Syncfusion Support.
We have planned releases every month and we currently do not have the option to refresh NuGet package in online. However, if you are using only SfDataGrid, we can provide you a local NuGet package which you need to configure with a local package source. Please confirm if this is fine so that we will provide you a local NuGet package based on your response.
Regards,
Suriya Kalidoss
CC
CT CHANG
March 4, 2018 10:26 PM UTC
Hi,
Attachment: ScreenCaptured_ab7abaa4.zip
I have updated my project to reference to the latest Syncfusion SfDataGrid v16.1.0.24 and I still encounter the NullReferenceException when binding the data to SfDataGrid with empty collection. See attached screen captured, and I also include NuGet packages reference on both my XForms and Android projects.
Would like to find out are there anyone still having the same problem?
Cheers,
CT
Attachment: ScreenCaptured_ab7abaa4.zip
SS
Sivaraman Sivagurunathan
Syncfusion Team
March 6, 2018 01:49 AM UTC
Hi Chang Chiew Thou,
Thanks for using Syncfusion support.
We have checked your query. This issue may occur due to the nuget cache problem. Can you please clear the nuget cache and reinstall the Syncfusion nugets. We have attach the KB link for how to install the syncfusion nugets. Please refer the below KB link
Regards,
Sivaraman
CC
CT CHANG
March 12, 2018 03:52 AM UTC
Hi Sivaraman,
I will give it a try and get back to you the outcome.
Cheers,
CT
SK
Suriya Kalidoss
Syncfusion Team
March 13, 2018 06:33 AM UTC
Hi Chang Chiew Thou,
Thanks for the update
We are waiting for your valuable response.
Regards,
Suriya K
Hi Chang Chiew Thou,Thanks for the updateWe are waiting for your valuable response.Regards,Suriya K
Hi Suriya,
I manage to isolated the root cause and resolve the crashed!
It was due to my silly mistake, as I have the custom QueryRowStyle event handling, and I did apply my custom style and set the e.handled = true; when then e.RowData is null, and this will crashed the app.
So, I have changed my code from
So, I have changed my code from
private void DataGridQueryRowStyleHandler(object sender, QueryRowStyleEventArgs e)
{
e.Style.ForegroundColor = Color.Red;
e.Handled = true;
}
To,
private void DataGridQueryRowStyleHandler(object sender, QueryRowStyleEventArgs e)
{
if (e.RowData == null)
{
return;
}
e.Style.ForegroundColor = Color.Red;
e.Handled = true;
}
Regards,
CT
SK
Suriya Kalidoss
Syncfusion Team
March 16, 2018 06:30 AM UTC
Hi Chang Chiew Thou,
We are glad that your issue has been resolved. Please let us know if your require any further assistance.
Regards,
Suriya
SIGN IN To post a reply.
- 38 Replies
- 11 Participants
-
LU Luca
- Dec 28, 2017 11:32 PM UTC
- Mar 16, 2018 06:30 AM UTC