The sub menu is not close when I click on other frames in the same window. What can I do?
The component control onclick event only in its own frame, you can add next code to any subframes to resolve issue
dhtmlxEvent(document.body,“click”,function(){
if (top.onclick) top.onclick();
})
It will cause fire event in top frame, so menu will be able to catch it