This question is locked. New answers and comments are not allowed.
Hi!
i have a DataBoundListBox with a Virtualizing Data Collection, on initial Loading, everything works fine. But when i try to change the count property of the Virtualizing Data Collection to a vlaue lower then the old one, i get an IndexOutOfRangeException.
Is this a bug?
Here is the StackTrace: at Telerik.Windows.Data.VirtualizingDataCollection.IsIndexLoaded(Int32 index)
at Telerik.Windows.Data.VirtualizingDataCollection.GetItemAt(Int32 index)
at Telerik.Windows.Data.VirtualizingDataCollection.get_Item(Int32 index)
at Telerik.Windows.Data.RadListSource.RequestDataForItem(IDataSourceItem item)
at Telerik.Windows.Data.DataSourceItem.get_Value()
at Telerik.Windows.Data.RadListSource.RemoveItems(NotifyCollectionChangedEventArgs e)
at Telerik.Windows.Data.RadListSource.SourceCollectionChangedOverride(NotifyCollectionChangedEventArgs e)
at Telerik.Windows.Data.RadListSource.OnSourceCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
at Telerik.Windows.Data.VirtualizingDataCollection.OnCollectionChanged(NotifyCollectionChangedEventArgs args)
at Telerik.Windows.Data.VirtualizingDataCollection.OnCountChanged(Int32 oldCount, Int32 newCount)
at Telerik.Windows.Data.VirtualizingDataCollection.set_Count(Int32 value)
at SigiNxMobile.MainViewModel.service_CountCustomersCompleted(Object sender, CountCustomersCompletedEventArgs e)
at SigiNxMobile.SigiNXServiceReference.SigiNXServiceClient.OnCountCustomersCompleted(Object state)
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)
i have a DataBoundListBox with a Virtualizing Data Collection, on initial Loading, everything works fine. But when i try to change the count property of the Virtualizing Data Collection to a vlaue lower then the old one, i get an IndexOutOfRangeException.
Is this a bug?
Here is the StackTrace: at Telerik.Windows.Data.VirtualizingDataCollection.IsIndexLoaded(Int32 index)
at Telerik.Windows.Data.VirtualizingDataCollection.GetItemAt(Int32 index)
at Telerik.Windows.Data.VirtualizingDataCollection.get_Item(Int32 index)
at Telerik.Windows.Data.RadListSource.RequestDataForItem(IDataSourceItem item)
at Telerik.Windows.Data.DataSourceItem.get_Value()
at Telerik.Windows.Data.RadListSource.RemoveItems(NotifyCollectionChangedEventArgs e)
at Telerik.Windows.Data.RadListSource.SourceCollectionChangedOverride(NotifyCollectionChangedEventArgs e)
at Telerik.Windows.Data.RadListSource.OnSourceCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
at Telerik.Windows.Data.VirtualizingDataCollection.OnCollectionChanged(NotifyCollectionChangedEventArgs args)
at Telerik.Windows.Data.VirtualizingDataCollection.OnCountChanged(Int32 oldCount, Int32 newCount)
at Telerik.Windows.Data.VirtualizingDataCollection.set_Count(Int32 value)
at SigiNxMobile.MainViewModel.service_CountCustomersCompleted(Object sender, CountCustomersCompletedEventArgs e)
at SigiNxMobile.SigiNXServiceReference.SigiNXServiceClient.OnCountCustomersCompleted(Object state)
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)