Scheduler, timelineMonth, current day visible

6 posts, 0 answers
  1. COMM
    COMM avatar
    21 posts
    Member since:
    Oct 2014

    Posted 26 May Link to this post

    I have a Scheduler that loads with the timelineMonth view. By default, the user sees the days of the month starting at 1 on the left and, depending on the width of the screen, cutting off at about the 9th or 10th. The user then scrolls right to see the rest of the month.

    Is it possible to have the Scheduler load so that the current day is visible in the viewport?  

     

  2. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2172 posts

    Posted 30 May Link to this post

    Hello,

    The desired behavior is not supported out of the box however it can be easily achieved using custom solution as demonstrated below:

    Regards,
    Vladimir Iliev
    Telerik
     
    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
  4. COMM
    COMM avatar
    21 posts
    Member since:
    Oct 2014

    Posted 30 May in reply to Vladimir Iliev Link to this post

    Hi Vladimir. That's perfect! Thanks.
  5. COMM
    COMM avatar
    21 posts
    Member since:
    Oct 2014

    Posted 01 Jun in reply to COMM Link to this post

    Hi Vladimir

    Actually, it's not such a good solution. It was fine while we were near the end of a month, but now that it's the 1st of June it screws up a little. It scrolls to half-way through the 3rd. See image attached.

  6. COMM
    COMM avatar
    21 posts
    Member since:
    Oct 2014

    Posted 01 Jun in reply to COMM Link to this post

    Hi again

    In fact it is scrolling consistently 2.5 days further forward than it should.

    In the scroll() function, if I add this line after the time variable declaration in the original example:

    time.setDate(time.getDate() + 3);

    thus fooling the widget into thinking it's now 4th June, it scrolls to mid-way on the 6th. And it is consistent if you change the '3' for anything else.

    How do I remedy this?

  7. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2172 posts

    Posted 03 Jun Link to this post

    Hello,

    I tried to reproduce the described behavior in several ways but to no avail - everything is working as expected on our side. Could you please provide more details in order to reproduce this behavior on our side:
    • do you reproduce this behavior using the demo that I provide
    • browser and version that you are using / OS version
    • exact timezone that the computer use
    Regards,
    Vladimir Iliev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top
Kendo UI is VS 2017 Ready