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

RadChart Error at DataPoint.DataItemPropertyChanged

3 Answers 42 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Ivy
Top achievements
Rank 1
Ivy asked on 22 Dec 2009, 03:54 AM
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)

3 Answers, 1 is accepted

Sort by
0
Dwight
Telerik team
answered on 24 Dec 2009, 07:37 AM
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.
0
Geoff Davis
Top achievements
Rank 1
answered on 28 Jan 2010, 10:36 PM
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
0
Dwight
Telerik team
answered on 03 Feb 2010, 08:34 AM
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.
Tags
Chart
Asked by
Ivy
Top achievements
Rank 1
Answers by
Dwight
Telerik team
Geoff Davis
Top achievements
Rank 1
Share this question
or