Back button issue

2 posts, 0 answers
  1. Luigi
    Luigi avatar
    1 posts
    Member since:
    Dec 2011

    Posted 02 Dec 2011 Link to this post

    When in the calendar on January 2012. If you click on the back button it goes to November 2011 and not december!
  2. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3707 posts

    Posted 05 Dec 2011 Link to this post

    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!
  3. Kendo UI is VS 2017 Ready
Back to Top