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

Problem when RadTreeView is inside a scrollviewer

1 Answer 162 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 2
Kevin asked on 11 Oct 2011, 11:46 AM
Hey, I'm not sure if this is possible, but can a RadTreeView handle being inside a ScrollViewer and letting it be in control of the scrolling??

I seem to have lost 2 abilities that i did before,

1) the ability to scroll up with an item when dragging
2) the ability to use the scroll wheel when my mouse is over the TreeView

you can see what i mean in this screen capture, the first part shows the not being able to drag an item upto the top, and the second part shows the ability to use the scroll wheel when i mouse over the scrollbar but not the scroll wheel..

also note, i have totally customised the look and feel of the RadTreeViewItem's... but it is indeed a RadTreeView.

http://www.youtube.com/watch?v=iE1rbqdDlmA

The reason we need the scroll viewer to work now, instead of using the RadTreeView's control is because we have the small panel that is pinned to the bottom of it, but when there are only a few items it appears directly below them, rather than being constantly pinned to the bottom of the screen.. its almost a "Traveling" toolbar.

Any help with this issue would be appreciated.

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 14 Oct 2011, 11:12 AM
Hi Kevin,

In order to implement an auto scroll during a drag operation, you'll need to create a behavior for this scenario. And the mouse wheel support you can implement by handling the RadTreeView.MouseWheel event, where you can scroll the ScrollViewer to a new vertical offset.

I attached a sample project to help you get started. Please let me know if it works for you or if we can further assist you.

Kind regards,
Tina Stancheva
the Telerik team

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

Tags
TreeView
Asked by
Kevin
Top achievements
Rank 2
Answers by
Tina Stancheva
Telerik team
Share this question
or