RadDatagrid IndexOutOfRange issue

Thread is closed for posting
2 posts, 0 answers
  1. petitponey
    petitponey avatar
    2 posts
    Member since:
    Nov 2015

    Posted 04 Feb 2016 Link to this post


    I have an IndexOutOfRange error but this occurs rarely and I can't reproduce it. Please could you investigate if a check can be added to avoid IndexOutOfRange

     Acording the stack trace, MeasureVertically seems to call UpdateAverageLength with a bad endIndex.

    I use the last published version of Telerik UI for Windows 8.1 (2016.1.113.45)

    Index was outside the bounds of the array.
    Stack Trace:
       at Telerik.UI.Xaml.Controls.Grid.IndexStorage.ValueForIndex(Int32 index, Boolean approximate)
       at Telerik.Data.Core.Layouts.CompactLayout.UpdateAverageLength(Int32 startIndex, Int32 endIndex)
       at Telerik.UI.Xaml.Controls.Grid.NodePool`2.MeasureVertically(RadSize availableSize, Double offset)
       at Telerik.UI.Xaml.Controls.Grid.NodePool`2.OnMeasure(RadSize availableSize, Double offset, Int32 frozenElementsCount)
       at Telerik.UI.Xaml.Controls.Grid.Model.GridModel.MeasureCells(RadSize newAvailableSize)
       at Telerik.UI.Xaml.Controls.Grid.RadDataGrid.OnCellsPanelMeasure(RadSize newAvailableSize)
       at Telerik.UI.Xaml.Controls.Grid.Primitives.DataGridCellsPanel.MeasureOverride(Size availableSize)

  2. Ivaylo Gergov
    Ivaylo Gergov avatar
    691 posts

    Posted 09 Feb 2016 Link to this post


    Thank you for contacting us.

    We will try to reproduce the issue and we will see what we can do. Meanwhile, if you manage to reproduce the exception, please send us some sample project so we can further investigate.

    Ivaylo Gergov
    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 Feedback Portal and vote to affect the priority of the items
Back to Top