Hello,
I would like to handle the OnKeyPress event to put focus on the next input control on the form when the enter key is pressed. I have this working for textboxes and comboboxes, and can focus the dateinput in the datepicker, but the enter key is not firing the OnKeyPress client event for the datepicker's dateinput control. The first debugger statement is hit when I enter a normal text key (e.g. '1', 'a'), but when hitting the enter key, nothing happens (the keyPressed_textbox function is never executed). Any ideas why the enter key is not firing the event?
edit: I have a similar problem with RadComboBoxes that have MarkFirstMatch set to true - the enter key does not fire the OnClientKeyPressing event, but the event is fired when MarkFirstMatch is set to false. Is there anything I can do about this?
I would like to handle the OnKeyPress event to put focus on the next input control on the form when the enter key is pressed. I have this working for textboxes and comboboxes, and can focus the dateinput in the datepicker, but the enter key is not firing the OnKeyPress client event for the datepicker's dateinput control. The first debugger statement is hit when I enter a normal text key (e.g. '1', 'a'), but when hitting the enter key, nothing happens (the keyPressed_textbox function is never executed). Any ideas why the enter key is not firing the event?
<telerik:RadDatePicker |
DateInput-ClientEvents-OnKeyPress="keyPressed_textbox" |
TabIndex="5" |
runat="server" |
ID="datepickerDob" |
Width="180px" |
MinDate="1/1/1900" |
CssClass="body_copy" /> |
function keyPressed_textbox(sender, args) { |
debugger; |
if ( 13 == args.get_keyCode() ) { |
/* never gets here for RadDatePicker's DateInput OnKeyPress event */ |
} |
} |
edit: I have a similar problem with RadComboBoxes that have MarkFirstMatch set to true - the enter key does not fire the OnClientKeyPressing event, but the event is fired when MarkFirstMatch is set to false. Is there anything I can do about this?