context menu

how can i share context menu in two frames i have tree in one frame and and in other frame i had a page if i minimize the other frame the context menu is trying to execute in tree frame only so it is automatically firing the event when i right click on the tree itself

The built in menu integration can show menu only inside the same frame as tree component ( technically , content of frame can’t be shown other frame forders )
As possible workaround you can init menu object in top frame, in such case context menu can be shown other child - frames borders.