Page 1 of 1

[SOLVED] beta 10.2 datagrid.itemsource exception

Posted: Tue Oct 25, 2016 10:27 am
by Sesztak
Dear JS-Support,
thanks for the new relase.

There is a bug at setting datagrid.ItemsSource = > exception in Simulator:

"System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.

at System.Collections.Generic.Dictionary`2.get_Item(TKey key)

at Windows.UI.Xaml.Controls.DataGrid.RemoveChild(Object childData)

at Windows.UI.Xaml.Controls.DataGrid.UpdateChildrenInVisualTree(IEnumerable oldChildrenEnumerable, IEnumerable newChildrenEnumerable, Boolean forceUpdateAllChildren)

at Windows.UI.Xaml.Controls.ItemsControl.OnItemsSourceChanged(IEnumerable oldValue, IEnumerable newValue)

at Windows.UI.Xaml.Controls.ItemsControl.ItemsSource_Changed(DependencyObject d, DependencyPropertyChangedEventArgs e)

at DotNetForHtml5.Core.INTERNAL_PropertyStore.OnPropertyChanged(INTERNAL_PropertyStorage storage, Object oldValue, Object newValue, PropertyMetadata typeMetadata)

at DotNetForHtml5.Core.INTERNAL_PropertyStore.RaisePropertyChangedAndCascadeToChildren(INTERNAL_PropertyStorage storage, Object oldValue, Object newValue, PropertyMetadata typeMetadata)

at DotNetForHtml5.Core.INTERNAL_PropertyStore.SetSpecificValue(INTERNAL_PropertyStorage storage, KindOfValue kindOfValueToSet, Object newValue, PropertyMetadata typeMetadata)

at DotNetForHtml5.Core.INTERNAL_PropertyStore.SetLocalValue(INTERNAL_PropertyStorage storage, Object newValue)

at Windows.UI.Xaml.DependencyObject.SetLocalValue(DependencyProperty dependencyProperty, Object value)

at Windows.UI.Xaml.DependencyObject.SetValueInternal(DependencyProperty dependencyProperty, Object value)

at Windows.UI.Xaml.DependencyObject.SetValue(DependencyProperty dependencyProperty, Object value)

at Windows.UI.Xaml.Controls.ItemsControl.set_ItemsSource(IEnumerable value)"

in Browser:
TypeError: Cannot read property 'I242$GetEnumerator$void=214' of null

Would you be so kind to check the problem at your side ?
thanks in advance,
Br,
Péter

Re: beta 10.2 datagrid.itemsource exception

Posted: Tue Oct 25, 2016 10:29 am
by Sesztak
another exception in the same case:
""this.$$2581 is not a function""

Re: beta 10.2 datagrid.itemsource exception

Posted: Tue Oct 25, 2016 10:32 am
by Sesztak
or :
System.NullReferenceException: Object reference not set to an instance of an object.

Re: beta 10.2 datagrid.itemsource exception

Posted: Tue Oct 25, 2016 10:33 am
by Sesztak
in more details:

System.NullReferenceException: Object reference not set to an instance of an object.

at Windows.UI.Xaml.Controls.Grid.ColumnDefinitions_CollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)

at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)

at System.Collections.ObjectModel.ObservableCollection`1.RemoveItem(Int32 index)

at System.Collections.ObjectModel.Collection`1.Remove(T item)

at Windows.UI.Xaml.Controls.DataGrid.UpdateUIStructure()

at Windows.UI.Xaml.Controls.DataGrid.OnItemsSourceChanged_BeforeVisualUpdate(IEnumerable oldValue, IEnumerable newValue)

at Windows.UI.Xaml.Controls.ItemsControl.OnItemsSourceChanged(IEnumerable oldValue, IEnumerable newValue)

at Windows.UI.Xaml.Controls.ItemsControl.ItemsSource_Changed(DependencyObject d, DependencyPropertyChangedEventArgs e)

at DotNetForHtml5.Core.INTERNAL_PropertyStore.OnPropertyChanged(INTERNAL_PropertyStorage storage, Object oldValue, Object newValue, PropertyMetadata typeMetadata)

at DotNetForHtml5.Core.INTERNAL_PropertyStore.RaisePropertyChangedAndCascadeToChildren(INTERNAL_PropertyStorage storage, Object oldValue, Object newValue, PropertyMetadata typeMetadata)

at DotNetForHtml5.Core.INTERNAL_PropertyStore.SetSpecificValue(INTERNAL_PropertyStorage storage, KindOfValue kindOfValueToSet, Object newValue, PropertyMetadata typeMetadata)

at DotNetForHtml5.Core.INTERNAL_PropertyStore.SetLocalValue(INTERNAL_PropertyStorage storage, Object newValue)

at Windows.UI.Xaml.DependencyObject.SetLocalValue(DependencyProperty dependencyProperty, Object value)

at Windows.UI.Xaml.DependencyObject.SetValueInternal(DependencyProperty dependencyProperty, Object value)

at Windows.UI.Xaml.DependencyObject.SetValue(DependencyProperty dependencyProperty, Object value)

at Windows.UI.Xaml.Controls.ItemsControl.set_ItemsSource(IEnumerable value)

Re: beta 10.2 datagrid.itemsource exception

Posted: Wed Oct 26, 2016 12:06 am
by JS-Support @Userware
Thank you. This is now in the "known regressions" list of the release notes. We are working with high priority to fix this issue asap, and we are updating our tests to prevent such a regression from happening again.

Regards
JS-Support

Re: [SOLVED] beta 10.2 datagrid.itemsource exception

Posted: Sun Nov 06, 2016 7:51 am
by JS-Support @Userware
The issue has been fixed in Beta 10.3, available at:

http://forums.cshtml5.com/viewforum.php?f=6