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

Internal ScrollViewer not stretching back when data is changed

1 Answer 49 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Valeriu
Top achievements
Rank 1
Valeriu asked on 23 Mar 2012, 03:08 PM

Hello

I have an issue with RadTreeView and his internal ScrollViewer.

I'm enabling scrolling with:

  ScrollViewer.VerticalScrollBarVisibility="Auto"

I have a data source that I'm binding to RadTreeView. Collection of items is changed on user's action. When a collection is large or user have expanded some nodes the ScrollViewer becomes visible. Say after that we scrolled to the last node. If after user's action the collection becomes smaller so it will fit on available space, the ScrollViewer will not update the scrollbar area/position and will not "stretch" back. To see items in radtreeview now user should scroll it to top.

Questions:

 - is it a bug or programmed behavior?

 - how can I force redrawing/recalculation of Scroll area so that items will be always visible?

Thanks

1 Answer, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 27 Mar 2012, 01:30 PM
Hi,

I've created a sample application (attached) but couldn't simulate the issue.
Could you please try to modify it in order to introduce the issue?

Regards,
Hristo
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
TreeView
Asked by
Valeriu
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Share this question
or