Focus

2 posts, 0 answers
  1. Joseph
    Joseph avatar
    7 posts
    Member since:
    Apr 2015

    Posted 22 Aug 2015 Link to this post

    How do you set focus to the Html.Kendo().DatePickerFor in javascript?
  2. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    1803 posts

    Posted 25 Aug 2015 Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
Back to Top