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
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
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;
it doesn't happen all the time, but when it does it stops the grid from ever updating
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 >>
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