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

How to Disable Autocorrect in RadDatePicker

1 Answer 142 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Rajiv
Top achievements
Rank 1
Rajiv asked on 10 Nov 2011, 08:38 AM
The RadDatePicker Auto correcting if you put invalid date values.

Ex : 01012011auto correct to 01-Jan-2011

How Can i disable autocorrect in RadDatePicker? 

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 10 Nov 2011, 09:10 AM
Hello Rajiv,

Try the following javascript.
JS:
<script type="text/javascript"
Telerik.Web.UI.RadDateInput.prototype.parseDate = function(value, baseDate)   
 {   
   if (new Date(value) != "NaN")   
     return value;   
 }   
</script>

Thanks,
Princy.
Tags
Calendar
Asked by
Rajiv
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or