I have a requirement to make RadApplicationMenu to open only by mouse right-click. How can I prevent mouse left button click and 'Enter' key pressing?
Thank you in advance.
2 Answers, 1 is accepted
0
Accepted
Stefan
Telerik team
answered on 26 Jul 2010, 05:29 PM
Hi Vladimir Abramchuk,
Thank you for contacting us.
In regards to your question, the correct approach is to override the OnMouseDown (respectively OnKeyDown) method and put your logic there. Please consider the following code snippet:
You can override the OnKeyDown method for the cases concerning keyboard navigation.
Please note that you need to override the ThemeClassName in the custom application menu implementation as well. For additional information, please refer to this article.
I hope you find this information helpful. Should you need additional assistance, do not hesitate to contact us.
All the best,
Stefan
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