Description: For a RadScrollablePanel (VerticalScrollbar is visible) with a RadSpinEditor inside it, when the user is scrolling the mouse wheel in order to change the RadSpinEditor value, both controls (the RadScrollablePanel and the RadSpinEditor) are affected.
To reproduce:
- add a RadScrollablePanel with several controls inside it (VerticalScrollbar is visible)
- add a RadSpinEditor inside the RadScrollablePanel
- scroll the mouse wheel in order to change the RadSpinEditor value
Workaround:
this.radSpinEditor3.SpinElement.TextBoxItem.HostedControl.MouseWheel+= HostedControl_MouseWheel;
private void HostedControl_MouseWheel(object sender, MouseEventArgs e)
{
if (this.radSpinEditor3.ReadOnly || !this.radSpinEditor3.SpinElement.EnableMouseWheel)
{
return;
}
HandledMouseEventArgs handledMouseEventArg = e as HandledMouseEventArgs;
if (handledMouseEventArg != null)
{
if (handledMouseEventArg.Handled)
{
return;
}
handledMouseEventArg.Handled = true;
}
}