dhtmlxCalendar edit disabled information after page load?

Hello there

Just a quick question, is there any way to edit the disabled dates after page load?

Basically I have a JSON array that is obtained via an AJAX call, this AJAX call is run each time a user enters in a postcode into a text field, this then calls the JSON array which contains all the dates to be disabled, however, I have noticed you are unable to set a new calendar after page load since you get an error “Cannot read property ‘getBoundingClientRect’ of undefined” for example if you make a new calendar on every character entered into a text field, I have tried this and also tried using ‘setInsensitiveDays’ but this doesn’t seem to work, is there any way to remove the calendar completely and then re-input it onto the page so it creates a fresh calendar each time instead of just appending the same one to the end of the document?

Thank you

  • DJCMBear

Don’t worry I have managed to do a work around :slight_smile:

I do have one other question though, does the ‘calendar.setSensitiveRange(“date here”, null);’ work in Internet Explorer, if so then I know that a part of the code I have written is stopping it working.

setSensitiveRange method should work in IE.

Please, provide a sample to reconstruct an issue