Hi
With TelerikRadTreeView , I have various types of items visible in the tree.
The presentation for all tree items is always same and hence I am using single template for displaying all the items.
The difference for these items is in their context menus. For each item, depending on the type different context menus are available.
I am tring to build these context menu dynamically. To achieve this I am doing following things -
1. RadContextMenu object is created and binded to the treeView.
2. For TreeView control , MouseRightButtonDown and MouseRightButtonUp event is handled.
MouseRightButtonDown only contains statement e.Handled = true.
MouseRightButtonUp , clears the items from the context menu , add few items and then IsOpen property of contextmenu is set to true.
To show the context menu properly depending on the item type (binded) I need to know for which radtreeItem mouserightbuttonup event triggered.
Is there any possiblitiy, that I can get the correct radtreeviewItem in mouserightbuttonup event ?
OR
How one can use VisualTreeHelperExtensions functions which gives me correct RadTreeViewItem.
Regards
Rajesh