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

Error trying to assign a date to a RadDatePicker

2 Answers 34 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Juan Carlos
Top achievements
Rank 1
Juan Carlos asked on 05 Feb 2014, 10:58 PM
I'm trying to assign a date to a raddatepicker from javascript, but he throws the following error:

    0x800a01b6 - Runtime Error in JavaScript: Object does not support property or 'getFullYear' method.

The code I'm using is:

$find('<%=rdpFchNacimiento.ClientID%>').set_selectedDate(MasterTable.getCellByColumnUniqueName(row, "FchNacimiento").textContent);

Thanks for any help you can give me.

Juan Carlos

2 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 06 Feb 2014, 04:44 AM
Hi Juan Carlos,

Please try the following JavaScript code which works fine at my end.

JavaScript:
$find('<%=rdpFchNacimiento.ClientID%>').get_textBox().control.set_value(MasterTable.getCellByColumnUniqueName(row, "FchNacimiento").textContent);

Hope this will helps you.
Thanks,
Shinu.
0
Juan Carlos
Top achievements
Rank 1
answered on 06 Feb 2014, 09:55 PM
Hi Shinu, perfect, thank you very much.


Juan Carlos
Tags
Calendar
Asked by
Juan Carlos
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Juan Carlos
Top achievements
Rank 1
Share this question
or