About count of DataPoints of a series of particular RadCartesianChart...

1 Answer 74 Views
Chart ChartView ChartView3D General Discussions
Dinesh
Top achievements
Rank 1
Iron
Dinesh asked on 30 Nov 2021, 06:49 AM | edited on 30 Nov 2021, 08:47 AM

In my WPF application using c#, I need a count of DataPoints of a series of particular RadCartesianChart using c# (code behind). How can I achieve it?

I have used the following line:

int a = ((Telerik.Windows.Controls.ChartView.CategoricalSeries)new System.Collections.Generic.Mscorlib_CollectionDebugView<CartesianSeries>(((Telerik.Windows.Controls.RadCartesianChart)my SelectedChart).Series).Items[0]).DataPoints.Count;

But it gives the following error:

Error	CS0122	'Mscorlib_CollectionDebugView<T>' is inaccessible due to its protection level

1 Answer, 1 is accepted

Sort by
0
Dinesh
Top achievements
Rank 1
Iron
answered on 30 Nov 2021, 08:50 AM

I have tried the following line of code and it works for me.

int  a = ((Telerik.Windows.Controls.ChartView.CategoricalSeries)(mySelectedChart.Series[0])).DataPoints.Count;

Tags
Chart ChartView ChartView3D General Discussions
Asked by
Dinesh
Top achievements
Rank 1
Iron
Answers by
Dinesh
Top achievements
Rank 1
Iron
Share this question
or