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

RadTextBox/RadDropDownList and the Context Menu

2 Answers 293 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Paul B
Top achievements
Rank 2
Paul B asked on 08 Oct 2013, 06:21 PM
I have a RadTextBox and RadDropDownList (DropDown style) on a winform and when I right click at runtime the context menu that pops up contains the usual cut/copy/paste items but it also has "Right to left Reading order", "Show Unicode control characters", "Insert Unicode control character", "Open IME" and "Reconversion" items. How can I disable/hide these unwanted context menu items?

Thanks!
~Paul

2 Answers, 1 is accepted

Sort by
0
Aini
Top achievements
Rank 1
answered on 09 Oct 2013, 12:19 PM
0
Stefan
Telerik team
answered on 11 Oct 2013, 06:40 AM
Hello guys,

RadDropDownList hosts the standard text box and you can remove its context menu by assigning a new ContextMenu instance to its ContextMenu property. Here is how to access the inner text box in RadDropDownList and do that:
radDropDownList1.DropDownListElement.EditableElement.TextBox.TextBoxItem.TextBoxControl.ContextMenu = new ContextMenu();

I hope this helps.
 
Regards,
Stefan
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
DropDownList
Asked by
Paul B
Top achievements
Rank 2
Answers by
Aini
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or