Disabling Wheel-Scrolling in the UltraCombo

[Infragistics] Andrew Flick / Monday, June 22, 2009

This is pretty simple.  Just set handled = true on HandledMouseEventArgs:

// prevents the scrolling through of the items when the UltraCombo is closed.
UltraCombo combo = sender as UltraCombo;
if (combo != null &&
    !this.ultraCombo1.IsDroppedDown)
    ((HandledMouseEventArgs)e).Handled = true;

 

Or

 

// prevents the scrolling of the underlying drop-down grid
UltraCombo combo = sender as UltraCombo;
if (combo != null &&
    this.ultraCombo1.IsDroppedDown)
    ((HandledMouseEventArgs)e).Handled = true;