Disable scrolling on mouse over

6 posts, 1 answers
  1. Mike
    Mike avatar
    34 posts
    Member since:
    Jan 2010

    Posted 18 Oct 2010 Link to this post

     within your combobox control, there is a functionality to scroll in the combobox item when the mouse is over a combobox even is the combobox doesn't have the focus.

    Is there any way to remove this behavior, because if the client scroll down the screen or even hit the mouse wheel by error when the mouse is over a combobox, the data might change without the user seeing it.

    I hope you have a way to disable this behavior because I couldn't find any.

  2. Answer
    Konstantina avatar
    2332 posts

    Posted 19 Oct 2010 Link to this post

    Hi Mike,

    Thank you for contacting us.

    To disable the MouseWheel of the ComboBox you can set the IsMouseWheelEnabled property to "False".

    Please let us know if you have any other questions about our controls.

    Kind regards,
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
  4. Mike
    Mike avatar
    34 posts
    Member since:
    Jan 2010

    Posted 19 Oct 2010 Link to this post

    Hi Konstantina 
        this will disable the entire mousewheel functionnality right? I just need to desactivate it when the mouse is over but the combobox is not focused.

    Anyway, I'm gonna try this today, and juggle with the mouseenter, mouseleave event if it doesn't do exactly what I wanted.
    I'll get back to you with my result.

  5. Mike
    Mike avatar
    34 posts
    Member since:
    Jan 2010

    Posted 19 Oct 2010 Link to this post

    Disregard my last post, I just read the entire tooltip of IsMouseWheelEnabled and this is exactly what i needed!

    Thank you for your time.
  6. Ranjeet
    Ranjeet avatar
    1 posts
    Member since:
    Feb 2014

    Posted 07 Feb 2014 in reply to Konstantina Link to this post

    Hi ,

    I am using the below code to disable the mouse scroll on combo box . It is able to disable the mouse scroll but when I am putting the same code on solaris server then the scroll is enable . So please let me know if there is work around for this so that we can disable the mouse scroll on Ccombo .
    For your reference I have pasted the code below. I am waiting for the reply.
    Thanks in advance !!!!

    import org.eclipse.swt.SWT;
    import org.eclipse.swt.custom.CCombo;
    import org.eclipse.swt.widgets.Display;
    import org.eclipse.swt.widgets.Event;
    import org.eclipse.swt.widgets.Listener;
    import org.eclipse.swt.widgets.Shell;

    public class CComboTest {

        public static void main(String[] args) {
            Display display = new Display();
            Shell shell = new Shell(display);
            shell.setSize(200, 150);
            shell.setLayout(new org.eclipse.swt.layout.GridLayout());

            final CCombo combo = new CCombo(shell, SWT.READ_ONLY);
            combo.addListener(SWT.MouseVerticalWheel, new Listener() {

                public void handleEvent(Event arg0) {
                    arg0.doit = false;


            while (!shell.isDisposed())
                if (!display.readAndDispatch())
  7. Yana
    Yana avatar
    4548 posts

    Posted 12 Feb 2014 Link to this post

    Hello Ranjeet,

    Please note that this forum thread is for RadComboBox for Silverlight,  the provided code does not seem relevant to it - I am afraid that we cannot be of much help in this case.


    Check out the new Telerik Platform - the only modular platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native apps. Register for the free online keynote and webinar to learn more about the Platform on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT).

Back to Top
DevCraft banner