Hello,
I'm having trouble stopping a form from doing a postback when the Enter key is pressed inside the DatePicker. This should be pretty straight foward, I would think, but this code isn't working.
function dateStopEnter(sender, e) {
e = e || window.event;
if (e.keyCode == 13)
return false;
}
The javascript event handler is called and it reaches the "return false" line, but it still allows a postback. I'm using File Version 2009.3.1104.35 of Telerik.Web.UI.dll and the form is contained in a .ascx file that is part of a Dot Net Nuke module. The module is installed in a DNN site...I don't know, maybe DNN is complicating this.
Tom
I'm having trouble stopping a form from doing a postback when the Enter key is pressed inside the DatePicker. This should be pretty straight foward, I would think, but this code isn't working.
<
telerik:RadDatePicker ID="dtpDate" runat="server" onkeypress="dateStopEnter(this, event)"></telerik:RadDatePicker>
e = e || window.event;
if (e.keyCode == 13)
return false;
}
The javascript event handler is called and it reaches the "return false" line, but it still allows a postback. I'm using File Version 2009.3.1104.35 of Telerik.Web.UI.dll and the form is contained in a .ascx file that is part of a Dot Net Nuke module. The module is installed in a DNN site...I don't know, maybe DNN is complicating this.
Tom