MultiColumnComboBox with ContextMenu

3 posts, 1 answers
  1. Dominik
    Dominik avatar
    14 posts
    Member since:
    Jan 2017

    Posted 13 Feb 2017 Link to this post


    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 ?




  2. Answer
    Hristo avatar
    1510 posts

    Posted 14 Feb 2017 Link to this post

    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:

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

    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.
  3. Dominik
    Dominik avatar
    14 posts
    Member since:
    Jan 2017

    Posted 16 Feb 2017 Link to this post

    Thanks a lot Hristo,


    that solves my problem!

Back to Top