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

RadTreeView.Scroll doesn't fire with mouse wheel

2 Answers 55 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Lauren Nickerson
Top achievements
Rank 1
Lauren Nickerson asked on 01 Apr 2010, 01:28 AM
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 Answers, 1 is accepted

Sort by
0
Kiril Stanoev
Telerik team
answered on 01 Apr 2010, 01:28 PM
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.
0
Lauren Nickerson
Top achievements
Rank 1
answered on 01 Apr 2010, 07:20 PM
Works perfect!

Thanks!
Tags
TreeView
Asked by
Lauren Nickerson
Top achievements
Rank 1
Answers by
Kiril Stanoev
Telerik team
Lauren Nickerson
Top achievements
Rank 1
Share this question
or