i have a RadTreeView with several nodes being added dynamically. on each node i am assigning the same context menu. in the click event for the items on the menu i need to know which node was right-clicked. how can i determine this?
1 Answer, 1 is accepted
answered on 19 Mar 2008, 08:42 AM
Hi Mac & Cheese,
The most secure way to get the node for which the context menu is shown is to use the ContextMenuShowing event.
Refer to the code below:
this.radTreeView1.ContextMenuShowing += new CancelEventHandler(radTreeView1_ContextMenuShowing);