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

Right click detection is offset

1 Answer 52 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Chu
Top achievements
Rank 1
Chu asked on 13 May 2010, 03:58 PM
I'm using the Telerik's right click hack to display a context menu to the user. It works great when the Silverlight control is positioned at the very top of the page. However, as soon as I add any html to the page which would bump the Silverlight control down, the right click detection is off by an equal amount the page is pushed down.

As an example, please look at the attached screen shot. The Silverlight control starts where the background turns white. The "windows Icon" image is wired up to catch the right click event and the mouse pointer with the red circle indicates where the right click actually took place. Note that clicking directly on the windows icon triggers a left click event but not a right click.

Is there a way to fix this behavior?

Thanks

1 Answer, 1 is accepted

Sort by
0
Accepted
Hristo
Telerik team
answered on 14 May 2010, 12:56 PM
Hello Ryan,

The easiest way would be to install Silverlight 4 and download our RadControls for Silverlight 4 assemblies (their version ends with .1040).  This way you will get much better performance (because there is no need to set Windowless=true) and right click working on all browsers and platforms supported by Silverlight.

Best wishes,
Hristo
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.
Tags
General Discussions
Asked by
Chu
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Share this question
or