dynamicView.updateContextMenu()

The dynamicView.updateContextMenu() function updates the visibility of context menu elements according to the nodes currently selected in the Tree Grid View.