I have a context menu attached to tree nodes via componentControl.
Now I need to disable certain menu items based on the node the user invokes the context menu on.
How can I realize that?
I thought about 3 solutions yet:
1.) Do not attach the context menu via componentControl but adding the context menu directly to each tree node. This should work but in this case a context menu is inserted for every node resulting in a rather large page, right? So this does not scale well for hundreds of nodes.
Anyone any suggestions or other solutions?