fires when cell undocked to window
myLayout.attachEvent("onUnDock", function(name){ // your code });