This is a migrated thread and some comments may be shown as answers.

Buttons can be clicked with middle or right click

5 Answers 385 Views
CommandBar
This is a migrated thread and some comments may be shown as answers.
Stephen McDaniel
Top achievements
Rank 1
Stephen McDaniel asked on 26 May 2015, 10:05 PM

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.

5 Answers, 1 is accepted

Sort by
0
Stephen McDaniel
Top achievements
Rank 1
answered on 26 May 2015, 11:59 PM
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.
0
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 28 May 2015, 12:46 PM
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
0
Stephen McDaniel
Top achievements
Rank 1
answered on 02 Jun 2015, 11:33 PM

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.

0
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 05 Jun 2015, 08:04 AM
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
0
Stephen McDaniel
Top achievements
Rank 1
answered on 05 Jun 2015, 04:23 PM
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.
Tags
CommandBar
Asked by
Stephen McDaniel
Top achievements
Rank 1
Answers by
Stephen McDaniel
Top achievements
Rank 1
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or