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

MultiColumnComboBox with ContextMenu

2 Answers 87 Views
MultiColumn ComboBox
This is a migrated thread and some comments may be shown as answers.
Dominik
Top achievements
Rank 1
Dominik asked on 13 Feb 2017, 12:52 PM

Hi, 

I have to add a ContextMenu to my MultiColumnComboBox. I already added a Winforms ContextMenuStrip and also set the ContextMenu Property. 

Now when I click on my dropDownButton of the ComboBox the right ContextMenu is shown but if I click in the middle of the textboxelement of the Combobox I get another one I do not want. Setting the ContextMenu of the textboxelement doesnt change that behaviour. 

THIS-OBJECT:MultiColumnComboBoxElement:TextBoxElement:TextBoxItem:HostedControl:ContextMenuStrip = THIS-OBJECT:contextMenuStripMain

Does anyone have an idea how to solve this ?

 

Sincerely,

Dominik

2 Answers, 1 is accepted

Sort by
0
Accepted
Hristo
Telerik team
answered on 14 Feb 2017, 02:50 PM
Hello Dominik,

Thank you for writing.

Your description suggests that you are referring to the default context menu of the editor element. Please bear in mind that the editor element is hosting the standard MS TextBox which has its separate menu. You can access it this way: 
this.radMultiColumnComboBox1.MultiColumnComboBoxElement.TextBoxElement.TextBoxItem.HostedControl.ContextMenu = new ContextMenu();

The following thread also discusses a similar matter: http://stackoverflow.com/questions/6590315/how-to-disable-some-items-of-textbox-in-c.

I hope this helps. Should you have further questions please do not hesitate to write back.

Regards,
Hristo
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Dominik
Top achievements
Rank 1
answered on 16 Feb 2017, 08:08 AM

Thanks a lot Hristo,

 

that solves my problem!

Tags
MultiColumn ComboBox
Asked by
Dominik
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Dominik
Top achievements
Rank 1
Share this question
or