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?