As can be seen in the following example:
https://dojo.telerik.com/@user192/aboNODeL , the "x" window closing button behaves differently from the self created closing button, as it closes the window before firing the close event. After the window is closed and pressing the open button to open the window again, the "x" window closing button behaves in the same way as the "close" button though. The close event gets fired instead of closing the window beforehand. Does anyone know why this happens and how to prevent the window from closing using the "x" button?