RadContextMenu with RadTextBox

2 posts, 0 answers
  1. Phillip Foster
    Phillip Foster avatar
    58 posts
    Member since:
    Apr 2010

    Posted 14 Apr 2011 Link to this post

    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?

  2. Ivan Petrov
    Ivan Petrov avatar
    702 posts

    Posted 19 Apr 2011 Link to this post

    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.

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