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?
5 Answers, 1 is accepted
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
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.
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?
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
Vladimir Iliev
Telerik