New to Telerik UI for WinForms? Start a free 30-day trial
How to migrate to new two columns menu
Updated over 1 year ago
| Product Version | Product | Author | Last modified |
|---|---|---|---|
| Q2 2008 | RadMenu and RadApplicationMenu for WinForms | Peter Petrov |
HOW-TO:
Migrate a two columns RadMenu to the new ApplicationMenu (available from Q2 2008).
SOLUTION: Change the type menu type (issually Designer.cs or Designer.vb) RadDropDownButtonElement to RadApplicationMenuButtonElement.
The items should be added not via RadApplicationMenuDropDown.RightColumnItems
C#
RadApplicationMenuDropDown dropDown = this.RadDropDownButtonElement1.DropDownMenu as RadApplicationMenuDropDown;
dropDown.RightColumnItems.AddRange(New Telerik.WinControls.RadItem() {this.RadMenuItem1, this.RadMenuItem2, this.RadMenuItem3});