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

Position of Right-Click (ContextMenu)?

1 Answer 105 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Wolfgang Kamir
Top achievements
Rank 1
Wolfgang Kamir asked on 08 Jul 2009, 01:41 PM
Hi all,

is there an easy way to find out where on the context-menu's opening-element the user has right-clicked? Or do i have to attach a javascript-handler for that?

This would be helpful as i use the Context-Menu for a Map-Control that I've written - and this way I could get latitude/longitude of where the user opened the Context-Menu...

Kind regards,
Wolfgang

1 Answer, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 09 Jul 2009, 02:18 PM
Hello Wolfgang,

Since Q2 2009, RadContextMenu has a property named MousePosition that holds the absolute mouse coordinates from the moment the menu was opened. I guess that it is the property you need.

Sincerely yours,
Valeri Hristov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Menu
Asked by
Wolfgang Kamir
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Share this question
or