This example demonstrates how to handle the PopupMenuShowing event to add new commands to the node menu:
privatevoidtreeList1_PopupMenuShowing(objectsender,PopupMenuShowingEventArgse){if(e.MenuisTreeListNodeMenu){treeList1.FocusedNode=((TreeListNodeMenu)e.Menu).Node;e.Menu.Items.Add(newDevExpress.Utils.Menu.DXMenuItem("Edit",bbEdit_ItemClick));e.Menu.Items.Add(newDevExpress.Utils.Menu.DXMenuItem("Add child",bbAddChild_ItemClick));e.Menu.Items.Add(newDevExpress.Utils.Menu.DXMenuItem("Delete",bbDelete_ItemClick));}}(you will be redirected to DevExpress.com to submit your response)