I want to programatically add a combo box to a menuitem. Does someone have an example?
3 Answers, 1 is accepted
0
Valeri Hristov
Telerik team
answered on 11 Mar 2011, 02:37 PM
Hi Jerry,
You could use code similar to this:
var menu = new RadMenu();
var item = new RadMenuItem
{
Header = "Root item",
Items =
{
new RadMenuItem
{
Header = "Regular item"
},
new RadMenuItem
{
Header = new RadComboBox()
}
}
};
menu.Items.Add(item);
Regards,
Valeri Hristov
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
In looking at the the needs a little more I think I am actually going to try the checkable submenu that I see in the samples. Do you have a standalone sample of a context menu using the checkable submenu?
The principle is the same for RadContextMenu (if you want some item to be checkable just set its IsCheckable property to true).
Let us know if you need more details.
All the best,
Hristo
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!