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

Set Focus After Date Selected

1 Answer 267 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
alo
Top achievements
Rank 1
alo asked on 21 Jul 2008, 01:13 AM

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 %>"];  
           datePicker.Focus();  
       }  
    </script> 

1 Answer, 1 is accepted

Sort by
0
Accepted
Missing User
answered on 22 Jul 2008, 03:30 PM
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



Regards,
Plamen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Calendar
Asked by
alo
Top achievements
Rank 1
Answers by
Missing User
Share this question
or