RadChart Error at DataPoint.DataItemPropertyChanged

4 posts, 0 answers
  1. Ivy
    Ivy avatar
    8 posts
    Member since:
    Oct 2009

    Posted 21 Dec 2009 Link to this post

    Hi,

    I am using radchart and I made its ItemsSource to point to the RadGridView ItemsSource.  The Grid is bound to a class named Task.  Whenever a property of a class Task is changed and raised an ONPropertyChanged... I get this error... How can my chart handle the onPropertyChanged?


    at Telerik.Windows.Controls.Charting.DataPoint.DataItemPropertyChanged(Object sender, PropertyChangedEventArgs e)\r\n   at System.ComponentModel.PropertyChangedEventHandler.Invoke(Object sender, PropertyChangedEventArgs e)\r\n   at FoederiSoft.FoederiSuite.UI.SL.TaskAdmin.List.Task.OnPropertyChanged(String propertyName)\r\n   at FoederiSoft.FoederiSuite.UI.SL.TaskAdmin.List.Task.set_ERCertifications(List`1 value)\r\n   at FoederiSoft.FoederiSuite.UI.SL.TaskAdmin.List.ViewModel._erClient_FetchReportTaskCompleted(Object sender, FetchReportTaskCompletedEventArgs e)
  2. Dwight
    Admin
    Dwight avatar
    475 posts

    Posted 24 Dec 2009 Link to this post

    Hi,

    It is in fact the handling of OnPropertyChanged that makes the RadChart fail. I assume there is an issue with the RadChart, but I will need more details on the scenario, that is failing. Can you, please, provide more details on the failing use case? I need to reproduce the issue locally in order to further this issue.

    All the best,
    Evtim
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Geoff Davis
    Geoff Davis avatar
    13 posts
    Member since:
    Dec 2009

    Posted 28 Jan 2010 Link to this post

    Hi,

    I was getting the same issue using a Line Series Definition.  The series is mapped to a display (type double) field, which should be populated from one of the other class properties based on a user selection.  When the user makes a selection and the first item has its display property set to the appropriate value, it notifies, and just like in Ivy's case, a Null Reference Exception is thrown from the corresponding DataPoint.

    This only happened in cases where the datacontext / itemssource had been changed, and we worked around the issue by finding a way to make changing the datacontext unnecessary.  It seems that even though the chart control itself no longer had a reference to the old collection, the individual datapoints were still receiving property changed events from their (old) bound items.

    Hope that helps,
    Geoff Davis
  4. Dwight
    Admin
    Dwight avatar
    475 posts

    Posted 03 Feb 2010 Link to this post

    Hello Geoff,

    This issue is related to a memory leak we found and fixed. Unfotrunately, we found it after the service pack release. Expect it with the Q1 2010 release.

    Kind regards,
    Evtim
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.
Back to Top