Hi,
I try to execute some server-side code when the cross is clicked. This code needs to deside if the window can be closed or not. I used this code for it:
Inside the raisePostBack method I call "window.close()" client-sided if my code want the window to close.
I used parts of this sample to make this, but this is totaly handled client-side:
http://www.telerik.com/community/code-library/aspnet-ajax/window/confirm-closing-of-a-radwindow-by-using-radconfirm.aspx
My problem is that when I call the "window.close()" method client-sided the onClientBeforeClose method is executed first again and will stop the close action of the window.
Any suggestion how I can solve this problem?
Thanks!
Erik
I try to execute some server-side code when the cross is clicked. This code needs to deside if the window can be closed or not. I used this code for it:
OnClientBeforeClose =
"function(s, e) {e.set_cancel(true);__doPostBack('"
+ UniqueID +
"', '"
+ CloseDialog +
"');}"
;
Inside the raisePostBack method I call "window.close()" client-sided if my code want the window to close.
I used parts of this sample to make this, but this is totaly handled client-side:
http://www.telerik.com/community/code-library/aspnet-ajax/window/confirm-closing-of-a-radwindow-by-using-radconfirm.aspx
My problem is that when I call the "window.close()" method client-sided the onClientBeforeClose method is executed first again and will stop the close action of the window.
Any suggestion how I can solve this problem?
Thanks!
Erik