Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Mel Irizarry on Mar 18, 2009 10:02
open dhtmlx forum
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?
Answer posted by Alex (support) on Mar 19, 2009 02:10

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

})