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

Loading data on RadDataBoundListBox in WP7 Manga Beta 7.1

3 Answers 107 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.
Jeremie
Top achievements
Rank 1
Jeremie asked on 10 Jul 2011, 08:11 AM
When loading data on Windows Phone 7.1 beta mango. I always have this exception when I'm scrolling the DataBoundListBox. It was working perfectly well on the previous version NoDo. By the way i'm loading a list with images as a template content.

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.RadVirtualizingDataControl.GetTopVisibleContainer()
       at Telerik.Windows.Controls.RadVirtualizingDataControl.an()
       at Telerik.Windows.Controls.RadVirtualizingDataControl.am()
       at Telerik.Windows.Controls.RadVirtualizingDataControl.a3()
       at Telerik.Windows.Controls.RadVirtualizingDataControl.BalanceVisualSpace()
       at Telerik.Windows.Controls.RadVirtualizingDataControl.ag()
       at System.Reflection.RuntimeMethodInfo.InternalInvoke(RuntimeMethodInfo rtmi, Object obj, BindingFlags invokeAttr, Binder binder, Object parameters, CultureInfo culture, Boolean isBinderDefault, Assembly caller, Boolean verifyAccess, StackCrawlMark& stackMark)
       at System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, StackCrawlMark& stackMark)
       at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
       at System.Delegate.DynamicInvokeOne(Object[] args)
       at System.MulticastDelegate.DynamicInvokeImpl(Object[] args)
       at System.Delegate.DynamicInvoke(Object[] args)
       at System.Windows.Threading.DispatcherOperation.Invoke()
       at System.Windows.Threading.Dispatcher.Dispatch(DispatcherPriority priority)
       at System.Windows.Threading.Dispatcher.OnInvoke(Object context)
       at System.Windows.Hosting.CallbackCookie.Invoke(Object[] args)
       at System.Windows.Hosting.DelegateWrapper.InternalInvoke(Object[] args)
       at System.Windows.RuntimeHost.ManagedHost.InvokeDelegate(IntPtr pHandle, Int32 nParamCount, ScriptParam[] pParams, ScriptParam& pResult)

3 Answers, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 11 Jul 2011, 07:36 AM
Hello Jeremie,

Please, refer to the support tickets you sent us regarding the same topic.

Kind regards,
Deyan
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Jonathan
Top achievements
Rank 2
answered on 27 Nov 2011, 05:31 PM
Hi,

I'm getting a stack trace much like the one above when I scroll rapidly to the end of a RadDataBoundListBox while it is waiting for new data (my data comes in via web service).  It seems like, when I hit the bottom of the list scrolling quickly enough, in doing the bounce past the "Loading" content, it hits the extreme of the bounce animation and then blows up with the ArgumentOutOfRange  indexing a List<RadVirtualizingDataControlItem>.

Since there was mention of a reported bug on this, I tried upgrading to the latest version of Q3 (2011.3.1116.2040) but am still having the problem.  I also tried switching to another paradigm, the Rad virtual collection, but then I got bunches of the "loading" content over and over.

I'm looking for a relatively quick fix as I'm otherwise ready to release this app.

Thanks in advance for any help you can provide.
-Jonathan
0
Deyan
Telerik team
answered on 28 Nov 2011, 08:04 AM
Hi Jonathan,

Thanks for writing.

We are currently not aware of similar issue and therefore we will be very grateful if you manage to give us some hints on how to reproduce it. We have a couple of examples covering similar scenarios (loading data on demand) in our Demos app and we are unable to reproduce any exceptions or undesired behavior.

Could you please prepare a small Windows Phone 7 sample application that reproduces the exception and send it to us so that we can take a look and provide you with a quick fix if anything emerges?

We appreciate you time and look forward to receiving the requested details.

P.S.

Please note that you will have to open a new support ticket to be able to attach your project.

Regards,
Deyan
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
DataBoundListBox
Asked by
Jeremie
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Jonathan
Top achievements
Rank 2
Share this question
or