righet click on tree view?
-
Hi in file context menu on tree view: I tried to add node to the tree and while adding it ,the value and text is set. the new node is shown but the menu does not appear while Rclick. plz tell me what is wrong?
protected void LinkButton1_Click1(object sender, EventArgs e)
{
setRightClickedNode();if (rightClickedNode != null) { TreeNode nodeToAdd = new TreeNode(); nodeToAdd.Text = "<div id='151' oncontextmenu='return showmenuie5(event,'151')' > new node </div>"; nodeToAdd.Value = "151"; rightClickedNode.ChildNodes.Add(nodeToAdd); } else { Label1.Text = "Oops, no right click node found. You have a problem"; } }
-
Hi in file context menu on tree view: I tried to add node to the tree and while adding it ,the value and text is set. the new node is shown but the menu does not appear while Rclick. plz tell me what is wrong?
protected void LinkButton1_Click1(object sender, EventArgs e)
{
setRightClickedNode();if (rightClickedNode != null) { TreeNode nodeToAdd = new TreeNode(); nodeToAdd.Text = "<div id='151' oncontextmenu='return showmenuie5(event,'151')' > new node </div>"; nodeToAdd.Value = "151"; rightClickedNode.ChildNodes.Add(nodeToAdd); } else { Label1.Text = "Oops, no right click node found. You have a problem"; } }
Sir, is the string that you were trying to write like this:
nodeToAdd.Text = "<div id='151' oncontextmenu='return showmenuie5(event,'151')' > new node </div>";