C1Calendar - selectDate issue

Posted by: cglaude on 10 September 2017, 11:35 am EST

  • Posted 10 September 2017, 11:35 am EST

    Hi,

    I'm trying to take the date from a textbox and then, selected the correspondant date to the Calendar.


    what's wrong !


    Here the code:


    function SelectCalStartDate() {
    var calendar = Sys.Application.findComponent("<%=C1CalStartDate.ClientID%>");
    var input = document.getElementById("ContentPlaceHolder1_txtStartDate");
    calendar.selectDate(new Date(input.value));
    calendar.popupBeside(input, C1.Web.UI.PositioningMode.bottomLeft);
    }
  • Replied 10 September 2017, 11:35 am EST

    Hello,


    This seems to be working for me.  Are you sure that you are actually getting the TextBox?  You can test this by using alert(input.get_id()); or alert(input.value);.  Also, what version are you using?


    Thanks,


    -Raleigh

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels