Set Focus After Date Selected

2 posts, 1 answers
  1. alo
    alo avatar
    53 posts
    Member since:
    Jan 2009

    Posted 20 Jul 2008 Link to this post

    After selecting a date from the Date Picker calendar pop up, the control loses the focus.  By default, shouldn't the focus return back to the input area?

    If not, how can I set the focus back to the Rad Date Picker's associated input area?

    I've tried the following javascript after the DateSelected event, but the focus method is not recognized:

       <script type="text/javascript">  
           function SetDatePickerFocus()  
               var datePicker = window["<%= RADDatePicker1.ClientID %>"];  
  2. Answer
    Plamen Peshev
    Plamen Peshev avatar
    885 posts

    Posted 22 Jul 2008 Link to this post

    Hi Al O,

    The client-side object for the RadDateInput control have a focus method that lets you set focus to the control. The attached example uses this method to set focus to a RadDatePicker1.DateInput control

    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top