When I am adding the XAxis tickpoint , if the tickpoint count increased by 15 then Array out of index exception has thrown
radChart.DefaultView.ChartArea.AxisX.TickPoints[index].Label =Date;
When the index value increased by 15 then it will throw the Array out of index exception
1 Answer, 1 is accepted
0
Velin
Telerik team
answered on 26 Mar 2010, 09:40 AM
Hello Jatin Aggarwal,
You should make sure that you do not step out of the bounds of the AxisX.TickPoints collection. You could either use the following code or elaborate more on your scenario in order to further assist you.
foreach (TickPoint tp in RadChart1.DefaultView.ChartArea.AxisX.TickPoints)
{
tp.Label = DateTime.Today.ToShortDateString();
}
Best wishes,
Velin
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items.