How to add a menu item to the default right-click on the devexpress treelist

I have a DevExpress (version 9.2) TreeList that by default displays a menu containing sort ascending/descending, column chooser, and best fit when you right-click on the header of the tree.

How would I add more choices to this default menu?

Answers


    void treeList1_PopupMenuShowing(object sender, DevExpress.XtraTreeList.PopupMenuShowingEventArgs e)
    {
        DXMenuItem item = new DXMenuItem("New menu item");
        e.Menu.Items.Add(item);


    }

Or do the menu item add in the form load event handler. Add a menu click handler as needed.


Need Your Help

Access window object / browser scope from protractor

selenium selenium-webdriver jasmine protractor

I'm running tests with protractor, but it seems impossible to access the JS 'window' object. I even tried adding a tag in my html file that would contain something like

CURL wont load data from https

php curl

My xampp wont load anything on this, I tried it on gearhost, same thing, but on one other free host, it worked.. json was loaded as it should.