Buttons can be clicked with middle or right click

6 posts, 2 answers
  1. Stephen McDaniel
    Stephen McDaniel avatar
    35 posts
    Member since:
    Mar 2008

    Posted 26 May 2015 Link to this post

    We've run into some situations where a right click on a particular Telerik control behaves in the way we expect only a left click to behave.

     For example, we have a Command Bar with a bunch of buttons.  If you right click one of the buttons, the Click event occurs and our application ends up doing the logic associated with the button.  End users are confused because they don't expect a right-click to trigger a button click.  The same goes for the middle click.  It seems like the buttons in a command bar should only raise the Click event if they are clicked with the left mouse (assuming right-handed mouse).  I'm not sure if the command bar supports keyboard navigation....but if so, then pressing the spacebar with the button focused should also trigger the Click event.

    For normal buttons, this seems to work as I expect (right or middle click does nothing, spacebar triggers click event, etc.).  I also found this old forum thread that talked about similar issues that I think have been fixed:  http://www.telerik.com/forums/you-can-right-click-to-click-button 

    There are two other places where I've noticed right click works and I think those are bugs as well.  

    1. Checkboxes can be checked/unchecked by right/middle clicking on them (or clicking on the label).  That seems wrong to me.  The checkboxes inside of tree views also have this problem.  However, checkboxes inside grids don't seem to have this problem.

    2. I can open dropdowns by right/middle clicking the little down arrow on the right edge of the dropdown.  That seems wrong.

    Finally, I've noticed that buttons show the 'clicked' state on mouse down of the middle button.  That doesn't seem right although I'm not 100% about that.  The mouse down state also appears for right click if I right click enough time.  This happens even on regular buttons.

    Hopefully my explanations of the various issues I'm seeing make sense.  I can see all of these problems in the demos included with the installation so I don't think any of them are issues with my code.

  2. Stephen McDaniel
    Stephen McDaniel avatar
    35 posts
    Member since:
    Mar 2008

    Posted 26 May 2015 in reply to Stephen McDaniel Link to this post

    A small update on this.  I noticed that some of my testing was in an older version of the Telerik controls.  In the latest version, right/middle clicking on checkboxes doesn't check/uncheck them so you can ignore that part of my request.  But everything else I mention seems to still be a problem in the latest version.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Answer
    Dess
    Admin
    Dess avatar
    1609 posts

    Posted 28 May 2015 Link to this post

    Hello Stephen,

    Thank you for writing.

    The provided detailed description is greatly appreciated. As of Q3 2014 RadCheckBox does not change its ToggleState with right mouse click. Please refer to the following feedback item: http://feedback.telerik.com/Project/154/Feedback/Details/110773-fix-radcheckbox-the-checkbox-state-is-changed-when-it-is-right-clicked.

    As to the CommandBarButton and RadDropDownList, I have logged them in our feedback portal. You can track their progress, subscribe for status changes and add your vote/comment to them on the following links: I have also updated your Telerik points.

    You can find suitable workarounds on the referred links.

    However, I was unable to reproduce the problem with the clicked state for RadButton with right/ middle mouse click. Could you please specify the exact steps how to reproduce the problem so I can investigate the precise case? Thank you in advance.

    Should you have further questions, I would be glad to help.
     
    Regards,
    Dess
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
  5. Stephen McDaniel
    Stephen McDaniel avatar
    35 posts
    Member since:
    Mar 2008

    Posted 02 Jun 2015 in reply to Dess Link to this post

    Thanks for the update on CommandBarButton and RadDropDownList.  The workaround is especially helpful.  I may just wait until this gets fixed officially since it's not currently a high priority issue for us.  But if it becomes a high priority, it's nice to have the workaround.

     I think the clicked state bug might only happen in the Telerik Metro Blue theme.  That might be why you can't reproduce it.  I opened up the Demo Application for Q1 2015 SP1 that was installed on my computer.  If I just go to the first Button sample app and switch to the Telerik Metro Blue theme, I can see the problem (I couldn't reproduce it on the other themes I tried).  Just press down middle mouse button while hovering over one of the buttons and you'll see the button shows a blue background.  I would expect that background to only show when you mouse down with the left mouse button.  For middle click, the blue background shows up on every single click.  If mouse down with the right mouse button, it seems the blue background only shows up on the second right click if you right click quickly.

  6. Answer
    Dess
    Admin
    Dess avatar
    1609 posts

    Posted 05 Jun 2015 Link to this post

    Hello Stephen,

    Thank you for writing back.

    I confirm that it is an issue with RadButton in TelerikMetroBlue theme. I have logged it in our feedback portal. You can track its progress, subscribe for status changes and add your vote/comment to it on the following link - feedback item.

    I have also updated your Telerik points.

    Currently, the possible solution that I can suggest is to remove the MouseDown state in Visual Style Builder for the fill element as it is illustrated on the attached screenshot.

    I hope this information helps. If you have any additional questions, please let me know.

    Regards,
    Dess
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
  7. Stephen McDaniel
    Stephen McDaniel avatar
    35 posts
    Member since:
    Mar 2008

    Posted 05 Jun 2015 in reply to Dess Link to this post

    Thanks for confirming the bug.  For now, it's not a huge deal for us so we'll probably just wait until it's fixed officially but I do appreciate the workaround in case we do need to make the change earlier than that.
Back to Top
UI for WinForms is Visual Studio 2017 Ready