This is a migrated thread and some comments may be shown as answers.

Back button issue

1 Answer 76 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Luigi
Top achievements
Rank 1
Luigi asked on 02 Dec 2011, 10:27 AM
When in the calendar on January 2012. If you click on the back button it goes to November 2011 and not december!

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 05 Dec 2011, 05:34 PM
Hello Luigi,

 
This is known issue, which is already addressed. Here is the code which fix the problem:

setDate: function(date, value) {
                if (value instanceof DATE) {
                    date.setFullYear(value.getFullYear(),
                    value.getMonth(),
                    date.getDate());
                } else {
                    var month = date.getMonth() + value;
 
                    date.setMonth(month);
 
                    if (month > 11) {
                        month -= 12;
                    }
 
                    if (month > 0 && date.getMonth() != month) {
                        date.setDate(0);
                    }
                }
            }
The fix should be applied in kendo.calendar.js.

Best regards,
Georgi Krustev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Calendar
Asked by
Luigi
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or