Completed
Last Updated: 28 Oct 2014 15:00 by Jesse Dyck
ADMIN
Dess | Tech Support Engineer, Principal
Created on: 05 Aug 2013 09:00
Category:
Type: Bug Report
2
FIX. RadScrollablePanel with VerticalScrollbar - using mouse wheel to change the value of the RadSpinEditor inside the panel, will both change the value of the spin editor and will scroll the panel.
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;
            }           
        }
1 comment
Jesse Dyck
Posted on: 05 Aug 2013 15:53
You can work around this by editing the source code of the RadSpinElement class:

private void textItem_MouseWheel(object sender, MouseEventArgs e)
{
    if (this.ReadOnly or !this.enableMouseWheel)
    {
        return;
    }
 
    HandledMouseEventArgs h