Setting min/max refreshes the view

2 posts, 0 answers
  1. Michaël
    Michaël avatar
    44 posts
    Member since:
    Feb 2014

    Posted 07 Dec 2014 Link to this post


    I have two Kendo calendars next to each other: one is used for "from" date while the other is used for "to" date. Whenever the selected date in the "from" calendar is changed, it updates the "min" value for the "to" calendar, and vice-versa.

    This works well, except that changing the min and max values seem to redraw the whole calendar, and I loose the context of the current view. For exemple, if the from calendar is currently on the "November" view, and "from" is 3rd of November. On the other hand, if the "to" calendar is currently on "December" view with to set on 3rd December.

    If I navigate to the "november" month in the "to" calendar, and changed the date of the "from" calendar (from 3rd to 4th November for instance), then the min is correctly updated on "to" calendar BUT it automatically navigates again to the month of the selected date (hence, December). I think this is a bug, changing the "min"/"max" should not reset the view (unless there is nothing to show, obviously).

  2. Kiril Nikolov
    Kiril Nikolov avatar
    2598 posts

    Posted 10 Dec 2014 Link to this post

    Hello Michaël,

    The behavior is expected, as the calendar will redraw itself when the min/max option is changed. You can use the built-in navigate() option in order to navigate to the particular view that you want to show. More information is available here:

    Kiril Nikolov
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top