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

GridView Exception

6 Answers 98 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Victor Manuel Gonzalez Tellez
Top achievements
Rank 1
Victor Manuel Gonzalez Tellez asked on 09 Feb 2010, 03:17 PM
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


6 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 09 Feb 2010, 03:23 PM
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.
0
Victor Manuel Gonzalez Tellez
Top achievements
Rank 1
answered on 12 Feb 2010, 03:53 PM
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.
0
Vlad
Telerik team
answered on 15 Feb 2010, 06:59 AM
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.
0
MiroslavStantic
Top achievements
Rank 1
Iron
answered on 29 Apr 2010, 09:09 AM
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
0
Vlad
Telerik team
answered on 29 Apr 2010, 11:39 AM
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.
0
Nicole
Top achievements
Rank 1
answered on 04 Jun 2012, 07:29 AM
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)
Tags
GridView
Asked by
Victor Manuel Gonzalez Tellez
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Victor Manuel Gonzalez Tellez
Top achievements
Rank 1
MiroslavStantic
Top achievements
Rank 1
Iron
Nicole
Top achievements
Rank 1
Share this question
or