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 helpHuy