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

Remove Mouse Wheel Event

1 Answer 58 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Axel
Top achievements
Rank 1
Axel asked on 04 Jan 2012, 12:18 PM
Hi,

is there a possibility to remove or disable the Mouse Wheel Scrolling on an radtreeview ? I want not that the TreeView will scrolls by moving the Mouse Wheel.

Thanks !

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 09 Jan 2012, 10:38 AM
Hello Manuela,

The RadTreeView control doesn't support this functionality out-of-the-box. But you can edit the default ControlTemplate of the RadTreeView control and set a custom ControlTemplate for the ScrollViewer element.

In the ControlTemplate of the ScrollViewer you need to handle the  MouseWheel event of the ScrollContentPresenter. I attached a sample project that demonstrates this approach. Let me know if it helps.

Greetings,
Tina Stancheva
the Telerik team

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

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