RadTreeView.Scroll doesn't fire with mouse wheel

3 posts, 0 answers
  1. Lauren Nickerson
    Lauren Nickerson avatar
    52 posts
    Member since:
    Jul 2009

    Posted 31 Mar 2010 Link to this post

    I have this event handler:

     
     
            private void theTree_SelectionChanged(object sender, System.Windows.Controls.SelectionChangedEventArgs e) 
            { 
                // do something 
            } 

    And it fires all right when I move the scroll bar by dragging it, but when I move around with the mouse wheel, it doesn't fire. Any workaround for this?

    Thanks!
  2. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1511 posts

    Posted 01 Apr 2010 Link to this post

    Hi Lauren,

    I assume you were talking about the ScrollBar.Scroll event. This event fires only when dragging the thumb of the ScrollBar. It does not fire on MouseWheel or when you click the buttons of the ScrollBar. Instead you should listen for the ScrollViewer.ScrollChanged="RadTreeView_ScrollChanged". This event fires no matter if you drag the ScrollBar or use the mouse. Give it a try and let me know how it works for you.

    Greetings,
    Kiril Stanoev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Lauren Nickerson
    Lauren Nickerson avatar
    52 posts
    Member since:
    Jul 2009

    Posted 01 Apr 2010 Link to this post

    Works perfect!

    Thanks!
Back to Top