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

Another bug

3 Answers 63 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.
Andrew
Top achievements
Rank 2
Andrew asked on 21 Nov 2011, 10:21 PM
Not sure where to submit bugs but I noticed that if I have a control, in my case a richtextbox, that is larger than the scroll area it doesn't handle it correctly. Is this a known issue and is there a fix or work around?

Robert

3 Answers, 1 is accepted

Sort by
0
Andrew
Top achievements
Rank 2
answered on 22 Nov 2011, 01:54 AM
And yet another one: NullReferenceException

Without animation:

   at Telerik.Windows.Controls.RadVirtualizingDataControl.CheckResetBottomScrollableContentPosition()
   at Telerik.Windows.Controls.RadVirtualizingDataControl.ManageViewport()
   at Telerik.Windows.Controls.RadVirtualizingDataControl.BalanceVisualSpace()
   at Telerik.Windows.Controls.RadVirtualizingDataControl.b6(IDataSourceItem A_0)
   at Telerik.Windows.Controls.RadVirtualizingDataControl.OnItemsChanged(NotifyCollectionChangedEventArgs e)
   at Telerik.Windows.Controls.RadDataBoundListBox.OnItemsChanged(NotifyCollectionChangedEventArgs e)
   at Telerik.Windows.Controls.RadVirtualizingDataControl.cf(Object A_0, NotifyCollectionChangedEventArgs A_1)
   at Telerik.Windows.Data.RadListSource.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
   at Telerik.Windows.Data.RadListSource.SourceCollectionChangedOverride(NotifyCollectionChangedEventArgs e)
   at Telerik.Windows.Data.RadListSource.OnSourceCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
   at Telerik.Windows.Data.RadListSource.Telerik.Windows.Data.IWeakEventListener.ReceiveEvent(Object sender, EventArgs e)
   at Telerik.Windows.Data.WeakEventHandler`1.ProcessEvent(Object sender, EventArgs e)
   at Telerik.Windows.Data.WeakEventHandler`1.OnCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
   at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
   at System.Collections.ObjectModel.ObservableCollection`1.InsertItem(Int32 index, CommentModel item)
   at System.Collections.ObjectModel.Collection`1.Add(CommentModel item)

With animation:
   at Telerik.Windows.Controls.RadVirtualizingDataControl.PlaySingleItemAddedAnimation(RadVirtualizingDataControlItem item)
   at Telerik.Windows.Controls.RadVirtualizingDataControl.b6(IDataSourceItem A_0)
   at Telerik.Windows.Controls.RadVirtualizingDataControl.OnItemsChanged(NotifyCollectionChangedEventArgs e)
   at Telerik.Windows.Controls.RadDataBoundListBox.OnItemsChanged(NotifyCollectionChangedEventArgs e)
   at Telerik.Windows.Controls.RadVirtualizingDataControl.cf(Object A_0, NotifyCollectionChangedEventArgs A_1)
   at Telerik.Windows.Data.RadListSource.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
   at Telerik.Windows.Data.RadListSource.SourceCollectionChangedOverride(NotifyCollectionChangedEventArgs e)
   at Telerik.Windows.Data.RadListSource.OnSourceCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
   at Telerik.Windows.Data.RadListSource.Telerik.Windows.Data.IWeakEventListener.ReceiveEvent(Object sender, EventArgs e)
   at Telerik.Windows.Data.WeakEventHandler`1.ProcessEvent(Object sender, EventArgs e)
   at Telerik.Windows.Data.WeakEventHandler`1.OnCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
   at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
   at System.Collections.ObjectModel.ObservableCollection`1.InsertItem(Int32 index, CommentModel item)
   at System.Collections.ObjectModel.Collection`1.Add(CommentModel item)

The problem is I'm pulling data from the net and it's random when this happens and I can't figure out what causes it.
0
Andrew
Top achievements
Rank 2
answered on 22 Nov 2011, 02:21 AM
Further investigation. I made my observablecollection block the notifcations and issue a reset after a batch add. That fixes the exception. Turns out the first item (header item) is larger than the viewport/screen which has the issue I mentioned above. So my guess is that there is a serious bug with items that are larger than the drawable area.
0
Deyan
Telerik team
answered on 22 Nov 2011, 08:12 AM
Hi Robert,

Thanks for contacting us and for reporting this issue.

We would kindly like to ask you to prepare a sample project that manages to reproduce the aforementioned issue and send it to us for further investigation. This will help us directly take a look at the case and possibly provide a fix for the upcoming Q3 2011 SP1 release.

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

Thanks for your time.

Kind regards,
Deyan
the Telerik team

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

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