This question is locked. New answers and comments are not allowed.
I can't seem to get the CopyTo method to work on a ChartArea.DataSeries. Unless I'm missing something the documentations says you can use a System.Array, however the compiler in VS2010 does not agree. The compiler suggest using Telerik.Windows.Controls.Cahrting.DataSeries[], however when I try that I either get an error because the array is not initialized or if set to null a runtime exception is thrown.
Here is what I've been trying
System.Array[] dsArray;
radChart.DefaultView.ChartArea.DataSeries.CopyTo(dsArray,0); - Compile Error
or
DataSeries[] dsArray = null;
radChart.DefaultView.ChartArea.DataSeries.CopyTo(dsArray,0); - Runtime Error
Thanks for anyones help in this matter.
B. Ruggeri
Here is what I've been trying
System.Array[] dsArray;
radChart.DefaultView.ChartArea.DataSeries.CopyTo(dsArray,0); - Compile Error
or
DataSeries[] dsArray = null;
radChart.DefaultView.ChartArea.DataSeries.CopyTo(dsArray,0); - Runtime Error
Thanks for anyones help in this matter.
B. Ruggeri