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

Argument out of Range

5 Answers 127 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Keith
Top achievements
Rank 1
Keith asked on 25 Jun 2012, 07:40 AM
Hi

I recently upgraded the ChartView control from Q1 to Q2 (2012.2.607.1050) but we are now seeing an ArgumentOutOfRange exception  when using a Pie Chart with bound data. This seems to occur when the original data is changed i.e. the chart should rebind. Is this a known bug and are you aware of any temporary work-around?

Thanks
Keith

5 Answers, 1 is accepted

Sort by
0
Mark
Top achievements
Rank 1
answered on 26 Jun 2012, 06:23 AM
we're also getting something similar but on ChartView BarSeries with categorical axis

System.ArgumentOutOfRangeException \ [ArgumentOutOfRange_Index]

See http://go.microsoft.com/fwlink/?linkid=106663&Version=4.0.60310.0&File=mscorlib.dll&Key=ArgumentOutOfRange_Index

Parameter name: index

at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)

at System.ThrowHelper.ThrowArgumentOutOfRangeException()

at System.Collections.Generic.List`1.get_Item(Int32 index)

at Telerik.Charting.CategoricalSeriesRoundLayoutContext.SnapPointToGridLine(CategoricalDataPoint point)

at Telerik.Charting.CombinedBarSeriesRoundLayoutStrategy.ApplyLayoutRoundingVertical(CombinedSeries series, CategoricalSeriesRoundLayoutContext info)

at Telerik.Charting.CombinedBarSeriesRoundLayoutStrategy.ApplyLayoutRounding(ChartAreaModel chart, CombinedSeries series)

at Telerik.Charting.ChartSeriesCombineStrategy.ApplyLayoutRounding(ChartAreaModel chartArea)

at Telerik.Charting.CartesianChartAreaModel.ApplyLayoutRounding()

at Telerik.Charting.ChartAreaModelWithAxes.ArrangeOverride(RadRect rect)

at Telerik.Charting.ChartNode.Arrange(RadRect rect, Boolean shouldRoundLayout)

at Telerik.Charting.ChartAreaModel.Arrange()

at Telerik.Windows.Controls.ChartView.RadChartBase.UpdateChartArea()

at Telerik.Windows.Controls.ChartView.RadChartBase.CallUpdateUI()

at Telerik.Windows.Controls.ChartView.RadChartBase.OnInvalidated()


only get it when app is deployed to a IIS environment and do not get it in a local development environment
0
Mark
Top achievements
Rank 1
answered on 27 Jun 2012, 02:55 AM
update to the Q2 controls and this issue doesn't occur any more

issue with the Q1 controls surrounded setting Min/Max values where bars would exist outside of the bounds.
e.g. a double? value of null or 0 would cause the exception if the min value of the linear axis was set to be 100
((LinearAxis)this.Chart.VerticalAxis).Minimum = 100;
0
Mark
Top achievements
Rank 1
answered on 27 Jun 2012, 07:16 AM
Got the same ArgumentOutOfRangeException error again after changing a property bound to CategoryBinding

it doesn't happen all the time, but when it does it stops the grid from ever updating
0
Petar Marchev
Telerik team
answered on 27 Jun 2012, 10:30 AM
Hello,

Keith, I was not able to reproduce the exception in mind. I created a simple project and did some testing but did not get an exception. I have attached the project to this post so that you can test and see if you get an error. If you keep experiencing problems with this I will ask that you provide us with a simple app that reproduces the error so that we can test and investigate.

Liam, it seems that the issue that you are experiencing is different and this is why I will ask that you open a new support ticket for it and provide us with a small project that reproduces this undesired behavior.

Greetings,
Petar Marchev
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Keith
Top achievements
Rank 1
answered on 28 Jun 2012, 07:35 AM
Hi Petar

Thanks for the response. I've submitted an incident which includes a slightly modified solution which demonstrates the issue. Basically to reproduce you need to change the binding so that the values have an owning object the palette name is set.

The incident id is 559848.

Thanks
Keith
Tags
ChartView
Asked by
Keith
Top achievements
Rank 1
Answers by
Mark
Top achievements
Rank 1
Petar Marchev
Telerik team
Keith
Top achievements
Rank 1
Share this question
or