Hi, I'm currently trying the charting component in my winform application. (version 2009.1.9.316)
Now I've got just a treeview and a chart component on my winform.
when I click on a treenode the chart view is loaded with the data, everything works fine.
now as long as my treeview isn't reloaded the chart loads the data, but when in my main form is triggered to reload the treeview and I click a treenode, my program crashes. with the following exception:
general exception: at Telerik.Charting.Chart.GetException(RenderEngine renderEngine, Exception ex)
at Telerik.Charting.Chart.GetImage(Int32 width, Int32 height)
at Telerik.Charting.Chart.GetImage()
at Telerik.WinControls.UI.RadChart.GetImage()
at Telerik.WinControls.UI.RadChart.OnPaint(PaintEventArgs e)
in the innerexception I'm reading system.nullreferenceexception
at Telerik.Charting.ChartSeriesItem.set_Parent(ChartSeries value)
at Telerik.Charting.ChartSeriesItem.Clone()
at Telerik.Charting.ChartSeries.CopyItems(ChartSeries originalSeries)
at Telerik.Charting.ChartSeries.CloneSeries()
at Telerik.Charting.RenderEngine.InitializeChartElements()
at Telerik.Charting.Chart.GetImage(Int32 width, Int32 height)
how is this possible? I didn't found anything bizar in my code. I added a try catch around the code that fills the chart, but the error isn't triggered here, but in my main try catch of my program.
my code:
The function TheIO.GetDataChartHistoricMonth or TheIO.GetDataChartHIstoricYear are returning a list of ChartHistoric
Thanks a lot