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

ERROR GridView.GridViewVituralizingPanel.GetChildIndexByPhysicalOffset

3 Answers 49 Views
Window
This is a migrated thread and some comments may be shown as answers.
Huy Truong The
Top achievements
Rank 1
Huy Truong The asked on 21 Aug 2009, 08:01 AM
Hello,
I am using radwindow and I found the following problem:

-          I use a telerik radwindow which contains a telerik radgridview and a button .When the radwindow is opened, i click to the button and get data to fill in the radgridview. When i do that, sometimes i have the following error :

 

Error: Sys.InvalidOperationException: ManagedRuntimeError error #4004 in control 'Xaml1':

System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.

Paramter name: index 

System.ThrowHelper.ThrowArgumentOutOfRangeException (ExceptionArgument argument, ExceptionResource resource)

at System.ThrowHelper.ThrowArgumentOutOfRangeException()

at System.Collections.Generic.List`1.get_Item(Int32 index)

at System.Collections.ObjectModel.Collection`1.get_Item(Int32 index)

at

Telerik.Windows.Controls.GridView.GridViewVituralizingPanel.GetChildIndexByPhysicalOffset(double offset)

at

Telerik.Windows.Controls.GridView.GridViewVituralizingPanel.UpdateFirstVisibleChildIndex(Double offset)

at

Telerik.Windows.Controls.GridView.GridViewVituralizingPanel.SetVerticalOffset(Double offset)

at

Telerik.Windows.Controls.GridView.GridViewVituralizingPanel.ResetVerticalOffset()

at

Telerik.Windows.Controls.GridView.BaseVirtualizingPanel.MeasureOverride(Size availableSize)

at System.Windows.FrameworkElement.MeasureOverride(intPtr nativeTarget, Single inWidth, Single inHeight, Single& outWidth, Single& outHeight)

Code:0

………..

Do you know why this error happen? Thank you for your help

Huy


3 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 21 Aug 2009, 08:39 AM
Hello Huy,

I tried this however everything worked fine - you can check the attached project.

All the best,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Huy Truong The
Top achievements
Rank 1
answered on 21 Aug 2009, 10:59 AM

Hello,

Thanks for your support. I got the sample project of Telerik about radgridview problem. However, I can’t  open it because it uses Silverlight V3.0, not in Silverlight V2.0. So would you send me another sample project using Silverlight V2.0?

I’m looking forward to your answer. Thank you very much.

Huy

0
Milan
Telerik team
answered on 24 Aug 2009, 02:09 PM
Hello Huy Truong The,

Here is the SL2 project.

Greetings,
Milan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Window
Asked by
Huy Truong The
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Huy Truong The
Top achievements
Rank 1
Milan
Telerik team
Share this question
or