Home - Forums-.NET - FlyTreeView (ASP.NET) - Changing ContextMenu of a Node Client Side

FlyTreeView (ASP.NET)

Technical support and KB related to the FlyTreeView control

This forum related to following products: FlyTreeView for ASP.NET

Changing ContextMenu of a Node Client Side
Link Posted: 13-Mar-2007 22:28
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|\"
Link Posted: 14-Mar-2007 01:23
This is FlyTreeView bug. A fixed build will be available in several hours.

Thanks.
Link Posted: 14-Mar-2007 03:10
[quote="EvgenyT"]Thanks.


Well, I thank you for the excellent support