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

Argument out of range exception on orientation change

3 Answers 55 Views
DataBoundListBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
selom
Top achievements
Rank 1
selom asked on 28 Apr 2013, 04:18 PM
I can consistenly produce an argument out of range exception when orientation changes on the databoundlistbox on wp7 and wp8. is this a known issue? it's quite a blocker.

System.ArgumentOutOfRangeException was unhandled
  Message=
Parameter name: index
  StackTrace:
       at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
       at System.ThrowHelper.ThrowArgumentOutOfRangeException()
       at System.Collections.Generic.List`1.get_Item(Int32 index)
       at Telerik.Windows.Controls.StackVirtualizationStrategy.GetTopVisibleContainer()
       at Telerik.Windows.Controls.RadVirtualizingDataControl.GetTopVisibleItem()
       at Telerik.Windows.Controls.RadVirtualizingDataControl.GetIndexOfViewportTopItem()
       at Telerik.Windows.Controls.VirtualizationStrategy.UpdateScrollParams()
       at Telerik.Windows.Controls.StackVirtualizationStrategy.OnContainerSizeChanged(RadVirtualizingDataControlItem container, Size newSize, Size oldSize)
       at Telerik.Windows.Controls.RadVirtualizingDataControl.OnContainerSizeChanged(RadVirtualizingDataControlItem container, Size newSize, Size oldSize)
       at Telerik.Windows.Controls.RadVirtualizingDataControlItem.InvalidateCachedSize(Size newSize)
       at Telerik.Windows.Controls.RadDataBoundListBoxItem.InvalidateCachedSize(Size newSize)
       at Telerik.Windows.Controls.RadVirtualizingDataControlItem.InvalidateCachedSize()
       at Telerik.Windows.Controls.StackVirtualizationStrategy.MeasureContainer(RadVirtualizingDataControlItem container)
       at Telerik.Windows.Controls.StackVirtualizationStrategy.OnViewportSizeChanged(Size newSize, Size oldSize)
       at Telerik.Windows.Controls.RadVirtualizingDataControl.OnSizeChanged(Object sender, SizeChangedEventArgs e)
       at System.Windows.FrameworkElement.OnSizeChanged(Object sender, SizeChangedEventArgs e)
       at MS.Internal.JoltHelper.RaiseEvent(IntPtr target, UInt32 eventId, IntPtr coreEventArgs, UInt32 eventArgsTypeIndex)
       at MS.Internal.XcpImports.UpdateLayoutNative(IntPtr element)
       at MS.Internal.XcpImports.UIElement_UpdateLayout(UIElement element)
       at System.Windows.UIElement.UpdateLayout()
       at Microsoft.Phone.Controls.PhoneApplicationFrame.UpdateOrientationTransform()
       at Microsoft.Phone.Controls.PhoneApplicationFrame.set_LayoutOrientation(PageOrientation value)
       at Microsoft.Phone.Controls.PhoneApplicationFrame.OnBeginLayoutChanged(Object sender, OrientationChangedEventArgs args)
       at System.Windows.Controls.Frame.FireEventHandler[T](EventHandler`1 handler, Object sender, OrientationChangedEventArgs args)
       at Microsoft.Phone.Controls.PhoneApplicationPage.set_LayoutOrientation(PageOrientation value)
       at Microsoft.Phone.Controls.PhoneApplicationPage.OnOrientationChanged(OrientationChangedEventArgs e)
       at Microsoft.Phone.Controls.PhoneApplicationPage.UIOrientationChange(ShellPageOrientation orientation)
       at Microsoft.Phone.Controls.PhoneApplicationPage.ShellPageCallback_OnUIOrientationChange(Object source, UIOrientationChangeEventArgs e)
       at Microsoft.Phone.Shell.Interop.ShellPageCallback.FireOnUIOrientationChange(ShellPageOrientation orientation, Boolean fAnimate)

3 Answers, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 29 Apr 2013, 08:25 AM
Hello Selom,

Thanks for writing and for reporting this.

We're not aware of similar issue and would like to investigate it. Could you please open a support ticket and attach a sample project that we can use to reproduce it on our side? This will help us directly debug the case and see what goes wrong.

Thanks for your time.

All the best,
Deyan
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
0
Jagoba
Top achievements
Rank 1
answered on 10 May 2013, 06:46 AM
I have the same issue, any news
?
0
Deyan
Telerik team
answered on 10 May 2013, 08:31 AM
Hi Jagoba,

This issue has already been addressed and we will be releasing an Internal Build containing the fix. You will be able to download it from your account by accessing the Latest Internal Builds section.

Let us know if you have additional questions.

Regards,
Deyan
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Tags
DataBoundListBox
Asked by
selom
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Jagoba
Top achievements
Rank 1
Share this question
or