[SOLVED] beta 10.2 datagrid.itemsource exception

Please report bugs here. If you are unsure whether something is a bug or an expected behavior, please post it on the "Technical Support" forum instead, and wait for a moderator to handle/move the post.
Sesztak
Posts: 172
Joined: Fri Jun 24, 2016 2:19 am

[SOLVED] beta 10.2 datagrid.itemsource exception

Postby Sesztak » Tue Oct 25, 2016 10:27 am

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

Sesztak
Posts: 172
Joined: Fri Jun 24, 2016 2:19 am

Re: beta 10.2 datagrid.itemsource exception

Postby Sesztak » Tue Oct 25, 2016 10:29 am

another exception in the same case:
""this.$$2581 is not a function""

Sesztak
Posts: 172
Joined: Fri Jun 24, 2016 2:19 am

Re: beta 10.2 datagrid.itemsource exception

Postby Sesztak » Tue Oct 25, 2016 10:32 am

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

Sesztak
Posts: 172
Joined: Fri Jun 24, 2016 2:19 am

Re: beta 10.2 datagrid.itemsource exception

Postby Sesztak » Tue Oct 25, 2016 10:33 am

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)

JS-Support @Userware
Site Admin
Posts: 1142
Joined: Tue Apr 08, 2014 3:42 pm

Re: beta 10.2 datagrid.itemsource exception

Postby JS-Support @Userware » Wed Oct 26, 2016 12:06 am

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

JS-Support @Userware
Site Admin
Posts: 1142
Joined: Tue Apr 08, 2014 3:42 pm

Re: [SOLVED] beta 10.2 datagrid.itemsource exception

Postby JS-Support @Userware » Sun Nov 06, 2016 7:51 am

The issue has been fixed in Beta 10.3, available at:

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


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 29 guests

 

 

cron