I don't know exactly what is going on, but when I click the "Next day" > arrow on the Agenda view, the control requests new data from the server but never moves the day. When I move backwards, it moves back 2 days at a time; not a week at a time.
I tried to debug through the code and it appears that the internal _startDate is wrong by 1 day and then when the "next day" calls get Next Day, it returns today, since the start day is internally yesterday.
I think this might be a timezone issue, but I am not sure... I am configuring the control just like the demo (which seems to work), but my code won't:
With the code above, the internal _startDate is set to:
Wed Jun 12 2013 00:00:00 GMT-0700 (PST)
And then the internal call to NextDay is incremented to "Today", which means the Agenda will just stay where it is.
Debugging through Kendo.All
Thoughts?
I tried to debug through the code and it appears that the internal _startDate is wrong by 1 day and then when the "next day" calls get Next Day, it returns today, since the start day is internally yesterday.
I think this might be a timezone issue, but I am not sure... I am configuring the control just like the demo (which seems to work), but my code won't:
view._scheduler.kendoScheduler({ date: new Date("2013/6/13"), startTime: new Date("2013/6/13 07:00 AM"), height: 700, views: tmpViews, editable: false, timezone: "Etc/UTC", dataSource: {With the code above, the internal _startDate is set to:
Wed Jun 12 2013 00:00:00 GMT-0700 (PST)
And then the internal call to NextDay is incremented to "Today", which means the Agenda will just stay where it is.
Debugging through Kendo.All
- On Init of Agenda View, date and startDate are what I passed in
- But somewhere later when I click on the > button it gets changed...
Thoughts?