Categories | Question details Back To List | ||
resetting double calendar 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 Answer posted by Alex (support) on Mar 23, 2009 05:50 Hello, You can try to use the following approach to reset the calendar: doubleCalendar.setDate(null,null); Answer posted by John on Mar 23, 2009 07:09 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 Answer posted by John on Mar 23, 2009 07:12 sorry in fact, the left calendar has today's date now when using null. Thx Answer posted by John on Mar 23, 2009 07:13 And it's the right calendar where i need to pick a date before today's date... John Answer posted by Alex (support) on Mar 23, 2009 08:37 You can try to use something as follows: setDate(null, null); doubleCalendar.leftCalendar.setSensitive(new Date("January 1, 1970"), new Date("January 1, 3000")); Answer posted by John on Mar 23, 2009 08:52 Thanks a lot It works as expected now. John |