Argument out of Range

6 posts, 0 answers
  1. Keith
    Keith avatar
    88 posts
    Member since:
    May 2007

    Posted 25 Jun 2012 Link to this post

    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
  2. Mark
    Mark avatar
    29 posts
    Member since:
    Aug 2010

    Posted 26 Jun 2012 Link to this post

    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
  3. DevCraft banner
  4. Mark
    Mark avatar
    29 posts
    Member since:
    Aug 2010

    Posted 26 Jun 2012 Link to this post

    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;
    
  5. Mark
    Mark avatar
    29 posts
    Member since:
    Aug 2010

    Posted 27 Jun 2012 Link to this post

    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
  6. Petar Marchev
    Admin
    Petar Marchev avatar
    968 posts

    Posted 27 Jun 2012 Link to this post

    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 >>

  7. Keith
    Keith avatar
    88 posts
    Member since:
    May 2007

    Posted 28 Jun 2012 Link to this post

    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
Back to Top
DevCraft banner