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

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

0 Answers 64 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Rafferty
Top achievements
Rank 1
Rafferty asked on 13 Aug 2012, 03:08 AM
Hi,

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>
</telerik:RadDatePicker>

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];
            btn.focus();
            btn.click();
        }
    }
}

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,

Rafferty

No answers yet. Maybe you can help?

Tags
Calendar
Asked by
Rafferty
Top achievements
Rank 1
Share this question
or