This question is locked. New answers and comments are not allowed.
I am using KendoUI controls with JavaScript with MVC. I have a popup window create by "kendoWindow". its working fine, but when i press ESC key it will automatically close. I want to disable the ESC key so that window popup can be only closed by Cancel button or close button.
Here is my Kendo Window code.
I tried JavaScript keypress event and all that but does not work.
Please Suggest.
Here is my Kendo Window code.
var wndEditClient= $("#divEditClient") .kendoWindow({ title: "Edit Client", modal: true, visible: false, resizable: false, width: 450, actions: ["Close"] }).data("kendoWindow");wndEditClient.open();$(document).bind("keypress", function (e) { if (e.keyCode == 27) { e.preventDefault(); } });