Blog Post

Disabling Wheel-Scrolling in the UltraCombo

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;

Posted 06-22-2009 4:34 PM by [Infragistics] Andrew Flick

Add a Comment


Sign in to post a comment.