I’ve just upgraded from 2.6 to 3.5 and you can no longer initialize a calendar value that is attached to a form field. However, if I attach the calendar to a div it initializes just fine.
And have the calendar object keep track of the time without actually displaying the time on the popup calendar. It doesn’t appear that this isn’t possible any longer for two reasons. First, you cannot set the value of a calendar attached to an input field directly, secondly, you can’t set the time without actually displaying the time.
Can this be resolved or can the functionality of the old version calendar be put back in place?
I know this is an old one but I know why this happens.
The calendar is indeed initialised to the custom date but, when the user clicks into the text input setDate is called again on the calendar.
This time it looks for the value of the input (which is blank) so the calendar defaults back to a new Date object.
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan