Returning focus back to page when dhtmlxWindow is closed?

I have a page that opens with a dhtmlxGrid control and populates using Smart Rendering. There is a button that when pressed opens a dhtmlxWindow on top of the page with enableAutoViewport(true). When I close the window I cannot get focus back to the main page. How do I get it back?


There is “onClose” event in dhtmlxWindow. You can use it to call any method after closing window:


win.attachEvent(“onClose”,function(){


/your code here/


return true


})