This is a migrated thread and some comments may be shown as answers.

How do add combo box to menu item?

3 Answers 123 Views
Menu
This is a migrated thread and some comments may be shown as answers.
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

Sort by
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!
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
0
Hristo
Telerik team
answered on 14 Mar 2011, 08:44 AM
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
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!
Tags
Menu
Asked by
Jerry Kurata
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Jerry Kurata
Top achievements
Rank 1
Hristo
Telerik team
Share this question
or