Home - Forums-.NET - FlyTreeView (ASP.NET) - ** FlyContextMenu **

FlyTreeView (ASP.NET)

Technical support and KB related to the FlyTreeView control

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

** FlyContextMenu **
Link Posted: 01-Feb-2008 12:56
Please confirm if the following actions are possible:

1. Change item.CommandName dynamically based on the right-clicked node
2. Add/remove items dynamically based on the right-clicked node

If none of the above is possible, what is the best work-around?

Thanks.
Link Posted: 01-Feb-2008 22:35
[quote="DHW"]1. Change item.CommandName dynamically based on the right-clicked node

See the
http://www.9rays.net/asp.net_2/treeview/miscpages/doc/ClientObjects.aspx
and  CFlyMenuItem members section.
Currently you can change Text and disable/enable menu items.

Also, I do not completely get why you need to change CommandName?

[quote="DHW"]2. Add/remove items dynamically based on the right-clicked node

Does the enable/disable menu items is what can help.
See the http://www.9rays.net/asp.net_2/treeview/Demo_Office2003.aspx demo,
it enables/disable menu items depending on a context node.

Alternatively, you can add several context menus to the page with different items.