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

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

1 Answer 43 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
nitesh monga
Top achievements
Rank 1
nitesh monga asked on 15 Mar 2010, 07:18 PM

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

1 Answer, 1 is accepted

Sort by
0
Pavel
Telerik team
answered on 16 Mar 2010, 09:27 AM
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.
Tags
Calendar
Asked by
nitesh monga
Top achievements
Rank 1
Answers by
Pavel
Telerik team
Share this question
or