there is the problem that within the admin section the same action is shown on both seperate trees. i have ran through the code in debug and it is adding the correct actions to the rootnode.menu but when i right click on the root node within the admin area it's always the Create Event action that is available.
wrong menu action being shown on tree node
i am trying to set up a custom create action for the root node on 2 different admin sections, coordinators and events.
i have set up classes that inherit IAction and essentially behave exactly the same except they return different javascript:
public class ActionCreateCoordinator : IAction
return @"function createCoordinator() { parent.right.document.location.href = 'plox/coordinator.aspx'; }";
public class ActionCreateEvent : IAction
return @"function createIntervention() { parent.right.document.location.href = 'plox/events.aspx'; }";
the problem is that when i add these classes to the menu like so:
rootNode.Menu.Clear();
rootNode.Menu.AddRange(new System.Collections.Generic.List<IAction> {
ActionCreateCoordinator.Instance,
ContextMenuSeperator.Instance,
ActionRefresh.Instance });
and:
rootNode.Menu.Clear();
rootNode.Menu.AddRange(new System.Collections.Generic.List<IAction> {
ActionCreateEvent.Instance,
ContextMenuSeperator.Instance,
ActionRefresh.Instance });
there is the problem that within the admin section the same action is shown on both seperate trees. i have ran through the code in debug and it is adding the correct actions to the rootnode.menu but when i right click on the root node within the admin area it's always the Create Event action that is available.
Anyone able to help?
is working on a reply...