RadDatePicker and IE 8 issue ( Using RadControls for ASP.NET AJAX 2009 3.1314 dev)

2 posts, 0 answers
  1. nitesh monga
    nitesh monga avatar
    28 posts
    Member since:
    Mar 2006

    Posted 15 Mar 2010 Link to this post

    Hi,

    I am facing a problem while using RadDatePicker in IE8, below is the code:

    <script language="javascript" type="text/javascript">  
     
        function fireHiddenButton(sender, args) {  
            var textBox1 = $find("<%= startDate.ClientID %>").get_selectedDate();  
            var textBox2 = $find("<%= endDate.ClientID %>").get_selectedDate();  
            if (textBox1 != null && textBox2 != null ) {  
                $get("<%= submitForm.ClientId %>").click();  
            }  
     
        }  
    </script> 
    <table> 
    <tr> 
    <td> 
    Start Date  
    </td> 
    <td> 
     
     
    <telerik:RadDatePicker ID="startDate" ShowPopupOnFocus="true"  runat="server">  
    <ClientEvents OnPopupClosing="fireHiddenButton" /> 
     
    </telerik:RadDatePicker> 
    </td> 
     
    </tr> 
    <tr> 
    <td> 
    End Date  
    </td> 
    <td> 
     
     
    <telerik:RadDatePicker ID="endDate" ShowPopupOnFocus="true" runat="server">  
    <ClientEvents OnPopupClosing="fireHiddenButton" /> 
    </telerik:RadDatePicker> 
    </td> 
    </tr> 
    </table> 
     
    <asp:LinkButton style="display:none" ID="submitForm"  runat="server"

    over here i have two raddatepicker with OnPopupClosing client event, and a hidden linkbutton. if i select startdate and then enddate the OnPopupClosing event calls the JS function fireHiddenButton which fires the click event of the linkbutton. the problem is after selecting the dates i can't change them, like if i select  3rd march as startdate and 10th march as enddate once the page postback and i try to change the enddate to 15th march after a postback the date is still the old date (10th march).

    it will be very kind if any one can help on this.

    thanks & regards
    nitesh monga
  2. Pavel
    Admin
    Pavel avatar
    904 posts

    Posted 16 Mar 2010 Link to this post

    Hi Nitesh,

    Try using the OnDateSelected client-side event handler instead of OnPopupClosing.

    Regards,
    Pavel
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top