Home - Forums-.NET - FlyTreeView (ASP.NET) - Dynamically enable/disable context menu at client

FlyTreeView (ASP.NET)

Technical support and KB related to the FlyTreeView control

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

Dynamically enable/disable context menu at client
Link Posted: 03-Aug-2006 07:54
In my treeview i have a number of documents wich are ordered by a priority index. (Each document have a unique index). In the context menu there are two options. One for moving the document up one step and one for moving it one step down.

Now to the problem. If the user right clicks the top most document the menu option for moving it upwards should be disabled as the document cannot be moved upwards. And in the same way the option for moving it downwards should be disabled when the bottom most document is clicked.

The treeview doesnt seem to generate any event from onNodeClientEvent when a node is right clicked.

Does anyone have a solution to my problem?
Link Posted: 03-Aug-2006 22:43
You should probably disable/enable menu items right after you move your node up or down. So you do not need to handle the right-click event.