Hi,
I am having issues when a user clicks outside the RadWindow and then presses ESC. This closes the window and it is happening on IE 7/ IE 8 and FF 3.5.
I found this post: http://www.telerik.com/community/forums/aspnet-ajax/window/radwindow-issues-in-firefox-3-0-5.aspx
Which kind of help me but it does not work on FF since there is no access to window.event:
<script type="text/javascript"> |
TelerikTelerik.Web.UI.RadWindow.prototype.old_close = Telerik.Web.UI.RadWindow.prototype.close; // Store the original function |
Telerik.Web.UI.RadWindow.prototype.close = function(e) |
{ |
//Override close |
var ESC = 27; // ESC Key code is 27 |
if (window.event && window.event.keyCode == ESC) |
{ |
return true; |
} |
else this.old_close(); // Call original function |
} |
</script> |
Should there be a property allowing to configure this behavior?
Any help would be appreciated.
Thanks.