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

Wrong times/dates in Agenda View template

7 Answers 199 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Petter Forss
Top achievements
Rank 1
Petter Forss asked on 02 Feb 2015, 02:40 PM
Hello. I've noticed something wierd when implementing an eventtemplate for the agendaview.
When an event occurs on two Days (or ends on midnight) the start and end values sent to the template become altered.

For example:
I have an event in our code behind that starts on 2015-01-30 21:00:00 and ends on 2015-01-31 00:00:00.

This event is shown twice in the agenda-view. (I can understand why this happens, even though i think it should be taken into consideration that 00:00:00 might not always be the beginning of a day, but also the end of a day depending on if it is a startvalue or a stopvalue)

The first visual representation of the event is shown on the 30:th which is to be expected.
However the 'end' value has the wrong time. Instead of showing the original value of '2015-01-31 00:00:00' it is showing '2015-01-31 21:00:00'.
In other Words, it has kept the date, but replaced the time with the time of the startvalue.

The second Visual representation of the event is shown on the 31:th, which frankly should not show at all...
This time the startvalue has been altered. It has kept the time but changed the date from '2015-01-30' to '2015-01-31'.

I have a few questions regarding this behaviour:
1. Why does it do this? (It seems very wrong to alter the data that way. If the data is going to be altered then there should be a huge "WARNING"-sticker tied to the eventtemplate-method of the agendaview.)
2. Is it a bug? (For all I know, it might be an unintended sideeffect of some other logic)
3. How can I alter it? (Bottom line: I need it solved!)

Best regards!

7 Answers, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 04 Feb 2015, 10:42 AM
Hello Petter,

The Agenda view shows two tasks, because it assumes that events with "00:00:00" time as a start of the next day. In general, JavaScript Date object has no notion for 24:00:00, hence dates with "00:00:00" are always the start of the day.

With regards to the issue, it seems that I am missing something, because I could not reproduce it locally. The second task shows "12:00" and not "21:00". Here is a screenshot of the demo. This is the test demo that I am using. Could you modify it in order to demonstrate the bug?

Regards,
Georgi Krustev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Petter Forss
Top achievements
Rank 1
answered on 04 Feb 2015, 12:19 PM
Hello Georgi,

I'd be happy to reproduce it for you. Here you go.
I've also attached a file with a screenshot highlighting the error.
0
Petter Forss
Top achievements
Rank 1
answered on 04 Feb 2015, 12:22 PM
The link above is in a wrong format, posting a new link to the demo here
0
Accepted
Georgi Krustev
Telerik team
answered on 06 Feb 2015, 10:39 AM
Hello Petter,

Thank you for the additional information and repro demo. The problem you are describing is a known issue, which is related exactly with the way Agenda view splits the multi-day events.

Our goal is to improve the current implementation and thus fix some of the issues that emanate from it (incorrect sorting is one of them) for the upcoming official release of Kendo UI due the mid of March.

For now I will not be able to provide any feasible workaround, because the problem, as I mentioned, is related to the current implementation and only changes in the code will solve the issue.

Regards,
Georgi Krustev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Petter Forss
Top achievements
Rank 1
answered on 06 Feb 2015, 12:51 PM
Ok, then I know that this is a bug and not some incorrect usage from our side.
I should be able to make a workaround to facilitate our needs temporarily, but I'm eagerly looking forward to the March-release. :)

Thank you for your help Georgi.
0
Jan
Top achievements
Rank 2
answered on 24 Aug 2016, 09:43 PM

Hi Georgi,

Is there an update on a fix from Telerik?

We are using 2016.1.226 and show the event dates using a tool tip. The incorrect dates are causing user confusion. This is both on the Agenda view, but also on the Week and Month views. The day view show the dates correctly. See attached screenshots.

On the week view, the event duration is broken up per week, where on the agenda view they are shown as "1 day events".

The event is scheduled from Aug 19 10:00 AM -> Aug 25 1:00PM.

 

0
Georgi Krustev
Telerik team
answered on 26 Aug 2016, 07:41 AM
Hello Jan,

The bug fix is in our TODO list, but its implementation is still not scheduled. I am afraid that I won't be able to provide any specific time frame when it will be addressed.

I will increase the issue priority that will help to include it in the planning sooner.

Regards,
Georgi Krustev
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
Tags
Scheduler
Asked by
Petter Forss
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Petter Forss
Top achievements
Rank 1
Jan
Top achievements
Rank 2
Share this question
or