Sync-ing the typed date to the calendar with the InputDate Control

Posted by: grapecity on 30 November 2017, 3:43 pm EST

    • Post Options:
    • Link

    Posted 30 November 2017, 3:43 pm EST

    I would like to sync the date typed into the text box to the Calendar dropdown on the inputDate control

    Is there a way to do this?

    I would test that it was a valid date before the sync and would do this from the textChanged event handler

  • Posted 3 December 2017, 7:31 pm EST

    Hi Greg,

    I am sorry but I am not very clear about your use case. Could you please elaborate when you are referring to " sync the date typed into the text box to the Calendar dropdown on the inputDate control", do mean the textbox inside the Input Control or is its separate textbox on the Page?

    Also please let me know if you are using Angular,Angular 2 or PureJS

  • Posted 4 December 2017, 12:33 pm EST

    I mean the textbox inside the inputDate control

    I am using AngularJS

    I am injecting the inputDate control into a wijmo.Flexgrid cell

    when I type the whole date into the textbox, I want it to change the highlighted date in the dropped down calendar.

    I would like to do this in the textChanged event handler

  • Posted 4 December 2017, 9:10 pm EST

    Hi Greg,

    You can accomplish this by assigning date to value property of Control incase of entered text is a valid date.

    You need to check if entered text is valid date, if yes assign to value property.

    ~Manish

Need extra support?

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

Learn More

Forum Channels