How to use mouse wheel to scroll div when using RadSlider as custom scrollbar

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

    Posted 12 Mar 2009 Link to this post

    I'm using the RadSlider as a custom scrollbar (like in this application scenario: http://demos.telerik.com/aspnet-ajax/slider/examples/customscrollbar/defaultcs.aspx) and would like to be able to allow the user to scroll inside the content div using the mouse's scroll wheel. Is there a way to accomplish this?
  2. Tsvetie
    Admin
    Tsvetie avatar
    1517 posts

    Posted 12 Mar 2009 Link to this post

    Hello David,
    You will have to handle the mousewheel event (DOMMouseScroll for FF) of the DIV element and change the value of the RadSlider according to the change in the top (left) of the element, holding your content.

    Useful links:

    All the best,
    Tsvetie
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top