
pasam Anna
Top achievements
Rank 1
pasam Anna
asked on 25 Oct 2011, 11:20 AM
Hi
How to disable autofill date option in calender control.
If I enter year and lost focus its fill automatically date.
How to avoid this.
How to disable autofill date option in calender control.
If I enter year and lost focus its fill automatically date.
How to avoid this.
4 Answers, 1 is accepted
0

Princy
Top achievements
Rank 2
answered on 25 Oct 2011, 12:53 PM
Hello Pasam,
You can try the following javascript.
JS:
Thanks,
Princy.
You can try the following javascript.
JS:
<script type=
"text/javascript"
>
Telerik.Web.UI.RadDateInput.prototype.parseDate =
function
(value, baseDate)
{
if
(
new
Date(value) !=
"NaN"
)
return
new
Date(value);
this
.set_textBoxValue(value);
}
</script>
Thanks,
Princy.
0

pasam Anna
Top achievements
Rank 1
answered on 26 Oct 2011, 01:49 AM
Hi Princy.
Thanks for your Suggestion.
This piece of code works fine in IE Browser.
But in Chrome its Not working.
Thanks for your Suggestion.
This piece of code works fine in IE Browser.
But in Chrome its Not working.
0

Robert
Top achievements
Rank 1
answered on 27 Jun 2012, 08:55 PM
Princy,
This doesn't work for me. It still shows the little triangle in the text box indicating that it is invalid.
This doesn't work for me. It still shows the little triangle in the text box indicating that it is invalid.
<
script
type
=
"text/javascript"
>
Telerik.Web.UI.RadDateInput.prototype.parseDate = function (value, baseDate)
{
if (new Date(value) != "NaN") {
return new Date(value);
this.set_textBoxValue(value);
}
}
</
script
>
0

Robert
Top achievements
Rank 1
answered on 28 Jun 2012, 12:13 PM
Actually scratch that Princy.... it's working for me now.