Remove Mouse Wheel Event

2 posts, 0 answers
  1. Axel
    Axel avatar
    3 posts
    Member since:
    Jan 2011

    Posted 04 Jan 2012 Link to this post


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

    Posted 09 Jan 2012 Link to this post

    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.

    Tina Stancheva
    the Telerik team

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

Back to Top