Hi,
In my page i have radtreeview, when i right click on child node(Lot 5) i am getting context menu "Start job" i want this option only.
But when i am right click on parent node(Phase 1) of Lot 5 i am getting same "Start Job" context menu. I don't want this option.
Please find the attached screen shots.
Here is my code.
In my page i have radtreeview, when i right click on child node(Lot 5) i am getting context menu "Start job" i want this option only.
But when i am right click on parent node(Phase 1) of Lot 5 i am getting same "Start Job" context menu. I don't want this option.
Please find the attached screen shots.
Here is my code.
Protected Sub contextmenu() Dim contextMenu1 As New RadTreeViewContextMenu() contextMenu1.ID = "contextMenu1" Dim menuItem1 As New RadMenuItem() menuItem1.Text = "Start Job" contextMenu1.Items.Add(menuItem1) RadTreeView1.ContextMenus.Add(contextMenu1) Dim contextMenu2 As New RadTreeViewContextMenu() RadTreeView1.ContextMenus.Add(contextMenu2) For Each node As RadTreeNode In RadTreeView1.GetAllNodes() node.ContextMenuID = IIf((node.Text = node_text.Text And node.Level = 2), "contextMenu1", "contextMenu2") NextEnd Sub