Sparkline Throwing Exception When Bound to Entity Framework Data

2 posts, 0 answers
  1. Dana
    Dana avatar
    1 posts
    Member since:
    Apr 2011

    Posted 20 Apr 2011 Link to this post

    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
    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
  2. Vladimir Milev
    Vladimir Milev avatar
    1061 posts

    Posted 25 Apr 2011 Link to this post

    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!

    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
Back to Top