This is a migrated thread and some comments may be shown as answers.

Agenda View won't advanced to the next day

1 Answer 47 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Aaron
Top achievements
Rank 1
Aaron asked on 06 Aug 2013, 11:56 PM
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:

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?

1 Answer, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 09 Aug 2013, 06:05 AM
Hello Aaron,

I'm afraid that I'm unable to observe such behavior locally (either with or without changing my timezone to PST). Are you able to recreate the same issue using our online demos? If not, could you please prepare a small runnable sample in which this behavior can be inspected locally.

Regards,
Rosen
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Scheduler
Asked by
Aaron
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Share this question
or