I've created a custom section with a treeview. I want to remove the context menu that appears when you right click on the tree nodes because I don't want the user to be able to create/delete. I've been following a few tutorials on it and I've managed to remove all of the items but I'm left with an empty context menu that I can't seem to get rid of.
The code to render the nodes is
public override void Render(ref XmlTree tree)
{
XmlTreeNode xNode = XmlTreeNode.Create(this);
xNode.NodeID = "1";
xNode.Text = "Enquiry Form";
xNode.Icon = "compliance.gif";
xNode.Action = "javascript:listEnquiries()";
xNode.Menu.Clear();
tree.Add(xNode);
}