If I attach a ContextMenuStrip to a RadTextBox is not showing, but if I on the same form add the same ContextMenuStrip to a normal Textbox is shows. What have I done wrong ?
Best Regards
Kim Johansen
3 Answers, 1 is accepted
0
Accepted
Nikolay
Telerik team
answered on 14 Jan 2010, 01:16 PM
Hi Kim Johansen,
Thank you for the question.
RadTextBox hosts the Microsoft TextBox control for its textbox part. When you set the ContextMenuStrip property of RadTextBox, the contextmenu is shown when you right-click on the RadElements of the RadTextBox (which are available close to the border). In order to get the custom contextmenu in the textbox part as well, please set it explicitly to the hosted TextBox:
But I don't understand why its not working if I set the textbox contextmenustrip property to my own contextmenustrip in design mode. Why should I do it programly ? Is it a bug in your component or do I have misunderstand something ?
Best regards
Kim Johansen
0
Nikolay
Telerik team
answered on 14 Jan 2010, 02:32 PM
Hello Kim Johansen,
Setting the RadTextBox.ContextMenuStrip property at design-time does automatically set the ContextMenuStrip property of the internal TextBox control. The automatic synchronization between RadTextBox and the internal TextBox is currently not supported.