Right click detection is offset

2 posts, 1 answers
  1. Chu
    Chu avatar
    8 posts
    Member since:
    Apr 2010

    Posted 13 May 2010 Link to this post

    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
  2. Answer
    Hristo
    Admin
    Hristo avatar
    832 posts

    Posted 14 May 2010 Link to this post

    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.
Back to Top