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

Issue ScrollViewer With NumericUpDown mouse wheel

1 Answer 10 Views
NumericUpDown
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 13 Jun 2013, 02:18 PM
Hi,

I'm implemented NumericUpDown in ScrollViewer after changing value with mouse wheel ScrollViewer Scrolled.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Accepted
Kalin
Telerik team
answered on 17 Jun 2013, 02:48 PM
Hi Steve,

One way not to scroll the NumericUpDown and the ScrollViewer at the same time is to handle the MouseWheel event of the NumericUpDown and set the Handled property to true. This way the user will be able to scroll only the control while mouse is over it. Please see the code snippet below:
private void RadNumericUpDown_MouseWheel(object sender, MouseWheelEventArgs e)
{
    e.Handled = true;
}

Hope this helps.

Regards,
Kalin
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
NumericUpDown
Asked by
Steve
Top achievements
Rank 1
Answers by
Kalin
Telerik team
Share this question
or