Hello
i have a search form using the double calendar. This form open a new page with the result and so, the page form doesn’t need to be reopened.
I want to reset the double calendar so in next search, the user can select a date in the left calendar without the need of changing de date in the right calendar if a previous search set a date in this one. This is the initial behavior when launching the page. Can i achieve this without relauching the form page ?
Thx
John
Hello,
You can try to use the following approach to reset the calendar:
doubleCalendar.setDate(null,null);
Hello
i try it but it did not work. The two calendar are back to today’s date but internally it seems that the ancient dates are still there.
I can’t use the left calendar to pick a date before today’s date.
I really need to do this.
Thx
sorry
in fact, the left calendar has today’s date now when using null.
Thx
And it’s the right calendar where i need to pick a date before today’s date…
John
You can try to use something as follows:
setDate(null, null);
doubleCalendar.leftCalendar.setSensitive(new Date(“January 1, 1970”), new Date(“January 1, 3000”));
doubleCalendar.rightCalendar.setSensitive(new Date(“January 1, 1970”), new Date(“January 1, 3000”));
Thanks a lot
It works as expected now.
John