This is a migrated thread and some comments may be shown as answers.

Sparkline Throwing Exception When Bound to Entity Framework Data

1 Answer 39 Views
Sparkline
This is a migrated thread and some comments may be shown as answers.
Dana
Top achievements
Rank 1
Dana asked on 20 Apr 2011, 12:32 PM
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

1 Answer, 1 is accepted

Sort by
0
Vladimir Milev
Telerik team
answered on 25 Apr 2011, 11:55 AM
Hi Dana,

Sparklines support nullable values and have the "empty values" feature. We tried to reproduce the behavior you describe but to no avail. Can you please open a support ticket and attach a small runnable application illustrating the issue? Thanks!

Greetings,
Vladimir Milev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Sparkline
Asked by
Dana
Top achievements
Rank 1
Answers by
Vladimir Milev
Telerik team
Share this question
or