This question is locked. New answers and comments are not allowed.
Jerry Kurata
Top achievements
Rank 1
Jerry Kurata
asked on 11 Mar 2011, 12:18 AM
I want to programatically add a combo box to a menuitem. Does someone have an example?
3 Answers, 1 is accepted
0
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
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!
0
Jerry Kurata
Top achievements
Rank 1
answered on 11 Mar 2011, 08:35 PM
Thanks Valeri.
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?
jerry
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?
jerry
0
Hi Jerry,
We have an example with checkable menu items in RadMenu.
http://demos.telerik.com/silverlight/#Menu/CheckableMenuItems
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
We have an example with checkable menu items in RadMenu.
http://demos.telerik.com/silverlight/#Menu/CheckableMenuItems
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!