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

Focus

1 Answer 534 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
Joseph
Top achievements
Rank 1
Joseph asked on 22 Aug 2015, 12:30 PM
How do you set focus to the Html.Kendo().DatePickerFor in javascript?

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 25 Aug 2015, 01:59 PM
Hi Joseph,

You can refer to the answer in the support ticket that you have opened with the same question.

For others convenience, following is the answer:
"For focusing the DatePicker widget with JavaScript you can get reference to the client object and use its element property, which will return the INPUT element. Once you have reference to the INPUT element you can use its focus method: 
var datepicker = $("#datepicker").data("kendoDatePicker");
datepicker.element.focus();
"
If any other questions arise on this matter I would suggest that we continue our communication in the support ticket.


Regards,
Konstantin Dikov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Date/Time Pickers
Asked by
Joseph
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or