How do I change the ContextMenu of a node client side?
This is what I tried:
function onNodeEventHandler(treeview, node, eventType)
{
if(eventType==\"expanded\")
{
node.setContextMenuID(\"ContextMenuExpanded\");
}
if(eventType==\"collapsed\")
{
node.setContextMenuID(\"ContextMenuCollapsed\");
}
}
This changes the ContextMenu in a node, but when a subnode is clicked the following error pops up:
\"Error when perofrming server call back:
Unknown node event type: NodeContextMenuIDChange0|\"