Error trying to assign a date to a RadDatePicker

3 posts, 1 answers
  1. Juan Carlos
    Juan Carlos avatar
    2 posts
    Member since:
    Jan 2011

    Posted 05 Feb 2014 Link to this post

    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. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 05 Feb 2014 in reply to Juan Carlos Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Juan Carlos
    Juan Carlos avatar
    2 posts
    Member since:
    Jan 2011

    Posted 06 Feb 2014 in reply to Shinu Link to this post

    Hi Shinu, perfect, thank you very much.


    Juan Carlos
Back to Top