RadVScrollBar Not Scrolling On Mouse Wheel event

2 posts, 0 answers
  1. Dan Harvey
    Dan Harvey avatar
    67 posts
    Member since:
    Jul 2008

    Posted 31 Aug 2009 Link to this post


    I have a scrollbar on a radform and it works just fine except when you try scrolling using the mouse wheel.  Does anyone have any suggestions? I wasn't sure on how to use the RadVScrollBar1_MouseWheel event.  Please advise.

  2. Jack
    Jack avatar
    2335 posts

    Posted 01 Sep 2009 Link to this post

    Hello dan harvey,

    Just like the standard MS VScrollBar our scrollbar doesn't scroll on MouseWheel event. However, you can implement this functionality by using a few lines of code:

    void radVScrollBar1_MouseWheel(object sender, MouseEventArgs e) 
        if (e.Delta < 0) 
            if (this.radVScrollBar1.Value < this.radVScrollBar1.Maximum) 
                this.radVScrollBar1.Value += this.radVScrollBar1.SmallChange; 
            if (this.radVScrollBar1.Value > this.radVScrollBar1.Minimum) 
                this.radVScrollBar1.Value -= this.radVScrollBar1.SmallChange; 

    I hope this helps. If you have any other questions, don't hesitate to write back.

    All the best,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. DevCraft R3 2016 release webinar banner
Back to Top