Problem with RadContextMenu.SetContextMenu

1 posts, 0 answers
  1. Qutfullo
    Qutfullo avatar
    3 posts
    Member since:
    Sep 2015

    Posted 23 Nov 2015 Link to this post


    I have a question about the RadContextMenu. I created my class DataGridView this class inherited from RadGridView. Look this:

     public class DataGridView : RadGridView

    public DataGridView()

                // create menu
                var contextMenu = new RadContextMenu();
                RadMenuItem item = new RadMenuItem();
                item.Header = "Hello";
                contextMenu.Opened += ContextMenu_Opened;
                //add something that we can use to get the data grid on context menu events
                contextMenu.ItemClick += ContextMenu_ItemClick;
                contextMenu.Opening += ContextMenu_Opening;
                // set menu Theme
                StyleManager.SetTheme(contextMenu, StyleManager.GetTheme(this));
                RadContextMenu.SetContextMenu(this, contextMenu);



Back to Top