RadDatePicker on IE - Text property cannot be set. String was not recognized as a valid DateTime.

1 posts, 0 answers
  1. Rafferty
    Rafferty avatar
    5 posts
    Member since:
    Jul 2012

    Posted 12 Aug 2012 Link to this post


    I have a RadDatePicker with the following code

    <telerik:RadDatePicker ID="rdpDateOfBirth" runat="server" EnableViewState="true" MinDate="1/1/1900" OnKeyUp="keyUp(this, event);">
        <DateInput runat="server" ID="radDateInput" font-size="1.0em" DateFormat="dd-MM-yyyy" MinDate="1/1/1900"</DateInput>

    where keyUp() is defined as:
    function keyUp(sender, e)
        e = e || window.event;
        if (e.keyCode == 13) {
            var defaultButtons = $('.saveButton');
            if (defaultButtons.length != 0) {
                var btn = defaultButtons[0];

    The idea is simple, save the value upon hitting the ENTER key.
    However, when using IE 8 (yes, only IE but works on Chrome), we get the error as seen in the attached file.

    What could be wrong?
    We're not setting any SelectedDate property in the button click. I also tried to break point our save button event and the error happens even before the first line is hit. So I'm guessing it's a telerik control problem.

    Thanks and regards,

Back to Top