In the TreeView Control in web forms, need to right Click on the TreeView Node and Rename, Delete as if we do in winforms, is there any possible options for it. I even tried with javascript and RightClick event, i could fetch only the text and not the value of the node.
function RightClick(event) {
var obj = event.srcElement || event.target;
var seltreeNode = obj;
alert(seltreeNode.innerHTML); //This will prompt selected Node Text
var name = prompt("Enter New Name", seltreeNode.innerHTML);
if (name != null && name != "")
{
seltreeNode.innerHTML = name;
}
}
Below is the Answer