I have a sparkline bound to an observable collection created from entity framework data
Y values used are a nullable double.
All works fine until a bound value is changed.
If value is say 12.5 and set to 14.7, works ok, spakline is updated
however
If value is changed from 12.5 to null and exception is thown - stack trace below
at Telerik.Windows.Controls.Sparklines.DataPointsCollectionView.OnItemPropertyChanged(Object sender, PropertyChangedEventArgs e) in c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Controls\DataVisualization\Sparklines\Data\DataPointsCollectionView.cs:line 251
at System.ComponentModel.PropertyChangedEventHandler.Invoke(Object sender, PropertyChangedEventArgs e)
at System.Data.Objects.DataClasses.StructuralObject.OnPropertyChanged(String property)
at System.Data.Objects.DataClasses.EntityObject.ReportPropertyChanged(String property)
at RatifTest2.Data.SampleData.set_NO(Nullable`1 value) in C:\DEV\AQ Modernisation\RatifTest2\RatifTest2\Data\RatModel.Designer.cs:line 220
If the sparkline is taken out of the equation and the data bound to say a RadGridView, setting value to null is handled correctly
Y values used are a nullable double.
All works fine until a bound value is changed.
If value is say 12.5 and set to 14.7, works ok, spakline is updated
however
If value is changed from 12.5 to null and exception is thown - stack trace below
at Telerik.Windows.Controls.Sparklines.DataPointsCollectionView.OnItemPropertyChanged(Object sender, PropertyChangedEventArgs e) in c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Controls\DataVisualization\Sparklines\Data\DataPointsCollectionView.cs:line 251
at System.ComponentModel.PropertyChangedEventHandler.Invoke(Object sender, PropertyChangedEventArgs e)
at System.Data.Objects.DataClasses.StructuralObject.OnPropertyChanged(String property)
at System.Data.Objects.DataClasses.EntityObject.ReportPropertyChanged(String property)
at RatifTest2.Data.SampleData.set_NO(Nullable`1 value) in C:\DEV\AQ Modernisation\RatifTest2\RatifTest2\Data\RatModel.Designer.cs:line 220
If the sparkline is taken out of the equation and the data bound to say a RadGridView, setting value to null is handled correctly