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

RadContextMenu with RadTextBox

1 Answer 125 Views
TextBox
This is a migrated thread and some comments may be shown as answers.
Phillip Foster
Top achievements
Rank 1
Phillip Foster asked on 14 Apr 2011, 07:01 PM
Ok, I've read about how the RadTextBox is the MS Hosted, but I'm not 100% what it all means.

Basically. I want to stop the default context menu from popping up, and add my RadContextMenu instead.

I have the RadcontectmenuManager added to the form, and the RadContextMenu property set in the radtextbox properties, but the default menu still appears,

Can this be done?

Thanks!

1 Answer, 1 is accepted

Sort by
0
Ivan Petrov
Telerik team
answered on 19 Apr 2011, 02:21 PM
Hi Phillip,

Thank you for writing.

You have to do two things in order to show a RadContextMenu in RadTextBox. First, you have to replace the default context menu with an empty one and then you have to show the RadContextMenu from the MouseDown event handler of the hosted control in the RadTextBox. I have attached a sample project where I have implemented these steps.

I hope this will help you. If you have further questions, do not hesitate to ask.

Regards,
Ivan Petrov
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
TextBox
Asked by
Phillip Foster
Top achievements
Rank 1
Answers by
Ivan Petrov
Telerik team
Share this question
or