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