How do add combo box to menu item?

4 posts, 0 answers
  1. Jerry Kurata
    Jerry Kurata avatar
    92 posts
    Member since:
    Feb 2010

    Posted 10 Mar 2011 Link to this post

    I want to programatically add a combo box to a menuitem.  Does someone have an example?
  2. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 11 Mar 2011 Link to this post

    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!
  3. DevCraft banner
  4. Jerry Kurata
    Jerry Kurata avatar
    92 posts
    Member since:
    Feb 2010

    Posted 11 Mar 2011 Link to this post

    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
  5. Hristo
    Admin
    Hristo avatar
    832 posts

    Posted 14 Mar 2011 Link to this post

    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!
Back to Top