To focus from raddatepicker to another

2 posts, 0 answers
  1. David
    David avatar
    2 posts
    Member since:
    Jan 2009

    Posted 21 Jul 2010 Link to this post

    Hye guys,

    I ve got 2 raddatepicker, how can i change the focus form the  first to the second one as soon as the user choose his first date.


  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 22 Jul 2010 Link to this post

    Hello David,

    You can accomplish this by using the client side api of RadDatePicker. Here is an example.

    <telerik:RadDatePicker ID="RadDatePicker1" runat="server">
        <ClientEvents OnDateSelected="OnDateSelectedHandler" />
    <telerik:RadDatePicker ID="RadDatePicker2" runat="server">

    client code:
    <script type="text/javascript">
        function OnDateSelectedHandler(sender, args) {
            var datePicker= $find('<%= RadDatePicker2.ClientID %>');
            datePicker.get_dateInput()._textBoxElement.focus(); // focus to textbox element
            datePicker.showPopup(); // To show the popup

Back to Top