GridView Exception

7 posts, 0 answers
  1. Victor Manuel Gonzalez Tellez
    Victor Manuel Gonzalez Tellez avatar
    7 posts
    Member since:
    Jan 2010

    Posted 09 Feb 2010 Link to this post

    Hi! Good day. We are facing some issues when having more items, so an scroll down its needed. The problem is when we load the list.  I have an ObservableCollection which is bounded to the GridView, and everytime you load the data from a WCF service, the list is cleared and filled again, is when the exception occurs. The code its very simple, ItemSource to the ObservableCollection, and SelectedItem to CurrentItem for edition, after edition finishes, the list is loaded again. This only happens when having ceratin number of elements. Thanks!

    The exception message is this:

    Message: Unhandled Error in Silverlight Application

    Code: 4004   

    Category: ManagedRuntimeError      

    Message: System.IndexOutOfRangeException: Index was outside the bounds of the array.

       at Telerik.Windows.Controls.GridView.IndexTree.CumulativeValue(Int32 endIndex)

       at Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.ArrangeOverride(Size finalSize)

       at System.Windows.FrameworkElement.ArrangeOverride(IntPtr nativeTarget, Single inWidth, Single inHeight, Single& outWidth, Single& outHeight)    

     

    Line: 56

    Char: 13

    Code: 0


  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 09 Feb 2010 Link to this post

    Hi,

    Can you post more info about your grid version?

    Sincerely yours,
    Vlad
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.
  3. DevCraft banner
  4. Victor Manuel Gonzalez Tellez
    Victor Manuel Gonzalez Tellez avatar
    7 posts
    Member since:
    Jan 2010

    Posted 12 Feb 2010 Link to this post

    Yes, we're using Q3 build 1314, and we're facing this issue, when we have a list that requires a vertical scroll, and we select and item at the bottom to delete it. After it's deleted, the load of the ObservableCollection is done again, and it's where we have the exception thrown.
  5. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 15 Feb 2010 Link to this post

    Hi,

    We believe that we've fixed this problem already - please try our latest internal build and let me know how it goes.

    Greetings,
    Vlad
    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.
  6. Miroslav Stantic
    Miroslav Stantic avatar
    42 posts
    Member since:
    Oct 2003

    Posted 29 Apr 2010 Link to this post

    Hi,

    I have the latest version of Telerik SL controls installed (April 2010) and it happens to me.
    I have a grid for managing lookup. So the form is very simple. I keep inserting rows. Works fine until I cannot insert any more rows. Even after I restart the application I get the same error. When I delete the record I can add the record. Magical number of records in my case is 8. 

    Thanks

    Miroslav
  7. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 29 Apr 2010 Link to this post

    Hi Miroslav,

    Can you send us an example project via support ticket where we can reproduce this?

    Sincerely yours,
    Vlad
    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.
  8. Nicole
    Nicole  avatar
    1 posts
    Member since:
    Jun 2012

    Posted 04 Jun 2012 Link to this post

    Hello,
    We are faced with the following situation.After the grouping a column,it is throw the
    following Exception when the external refresh the list in the Grid.


    Exception classes:   
       System.IndexOutOfRangeException
    Stack Traces:
      Telerik.Windows.Controls.GridView.IndexTree.CumulativeValue(Int32 endIndex)
      Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.ExtendDesiredSize(Int32 itemsCount, Size stackDesiredSize, Int32 pivotIndex, Boolean before)
      Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.MeasureOverride(Size constraint)
      System.Windows.FrameworkElement.MeasureCore(Size availableSize)
      System.Windows.UIElement.Measure(Size availableSize)
       System.Windows.Controls.StackPanel.MeasureOverride(Size constraint)
      System.Windows.FrameworkElement.MeasureCore(Size availableSize)
      System.Windows.UIElement.Measure(Size availableSize)
      System.Windows.Controls.Border.MeasureOverride(Size constraint)
      System.Windows.FrameworkElement.MeasureCore(Size availableSize)
      System.Windows.UIElement.Measure(Size availableSize)
Back to Top
DevCraft banner