Problem when RadTreeView is inside a scrollviewer

2 posts, 0 answers
  1. Kevin
    Kevin avatar
    83 posts
    Member since:
    Sep 2008

    Posted 11 Oct 2011 Link to this post

    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.

    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.
  2. Tina Stancheva
    Tina Stancheva avatar
    3299 posts

    Posted 14 Oct 2011 Link to this post

    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 >>

Back to Top