Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Im trying to add items to context menu in umbraco 6.1.6, but the examples i find online is not working.can anyone tell me why?
public class TreeEvent : ApplicationBase
{
public TreeEvent()
BaseTree.BeforeNodeRender += new BaseTree.BeforeNodeRenderEventHandler(this.BaseTree_BeforeNodeRender);
}
private void BaseTree_BeforeNodeRender(ref XmlTree sender, ref XmlTreeNode node, EventArgs e)
if (node.Menu != null)
// node.Menu.Insert(0, new TestAction());
node.Menu.Insert(1, umbraco.BusinessLogic.Actions.ContextMenuSeperator.Instance);
node.Menu.Insert(2, umbraco.BusinessLogic.Actions.ContextMenuSeperator.Instance);
node.Menu.Insert(3, umbraco.BusinessLogic.Actions.ContextMenuSeperator.Instance);
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
context menu
Im trying to add items to context menu in umbraco 6.1.6, but the examples i find online is not working.
can anyone tell me why?
public class TreeEvent : ApplicationBase
{
public TreeEvent()
{
BaseTree.BeforeNodeRender += new BaseTree.BeforeNodeRenderEventHandler(this.BaseTree_BeforeNodeRender);
}
private void BaseTree_BeforeNodeRender(ref XmlTree sender, ref XmlTreeNode node, EventArgs e)
{
if (node.Menu != null)
{
// node.Menu.Insert(0, new TestAction());
node.Menu.Insert(1, umbraco.BusinessLogic.Actions.ContextMenuSeperator.Instance);
node.Menu.Insert(2, umbraco.BusinessLogic.Actions.ContextMenuSeperator.Instance);
node.Menu.Insert(3, umbraco.BusinessLogic.Actions.ContextMenuSeperator.Instance);
}
}
}
is working on a reply...