This is a migrated thread and some comments may be shown as answers.

RadDatePicker Enter Key Press Event.

3 Answers 405 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Rahul
Top achievements
Rank 1
Rahul asked on 16 Jan 2012, 02:53 PM
Hi,

We are using a RadDatePicker in our application, we just want to handle the RadDatePicker enter key press event . We have used  DateInput-ClientEvents-OnKeyPress but this method does not fire on enter key press , so we tried with onkeydown event but this event does not return the values entered in the raddatepicker textbox (if date is manually entered ) also the Telerik in built Date validations are also not working when onkeydown  method is used. We just want to bind a grid on Datedatepicked textbox enter key press event. Please help us in this.


Thanks,

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 17 Jan 2012, 04:47 AM
Hello,

Try the following code.
ASPX:
<telerik:RadDatePicker TabIndex="5" runat="server" ID="RadDatePicker1" Skin="Forest" onkeydown="onkeydown(this, event)" />

JS:
<script type="text/javascript">
 function onkeydown(sender, e)
  {
     e = e || window.event;
     if (e.keyCode == 13)
     {
       //your code
     }
  }
</script>

Thanks,
Princy.
0
Anil Nautiyal
Top achievements
Rank 1
answered on 06 Sep 2012, 06:02 AM
Hi All

i select the date from RadDatePicker after selection of date i pressed enter key then my RadDatePicker selected dates get blanked 
please help me.

Thanks
Anil
0
Eyup
Telerik team
answered on 10 Sep 2012, 02:18 PM
Hello Anil,

Do you face this issue with our RadDatePicker demos?
http://demos.telerik.com/aspnet-ajax/calendar/examples/datepicker/custompopup/defaultcs.aspx

Could you please provide the steps to reproduce the issue on our side?

Regards,
Eyup
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Ajax
Asked by
Rahul
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Anil Nautiyal
Top achievements
Rank 1
Eyup
Telerik team
Share this question
or