Wrong times/dates in Agenda View template

8 posts, 1 answers
  1. Petter Forss
    Petter Forss avatar
    20 posts
    Member since:
    Oct 2009

    Posted 02 Feb 2015 Link to this post

    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!
  2. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3707 posts

    Posted 04 Feb 2015 Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
  4. Petter Forss
    Petter Forss avatar
    20 posts
    Member since:
    Oct 2009

    Posted 04 Feb 2015 in reply to Georgi Krustev Link to this post

    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.
  5. Petter Forss
    Petter Forss avatar
    20 posts
    Member since:
    Oct 2009

    Posted 04 Feb 2015 Link to this post

    The link above is in a wrong format, posting a new link to the demo here
  6. Answer
    Georgi Krustev
    Admin
    Georgi Krustev avatar
    3707 posts

    Posted 06 Feb 2015 Link to this post

    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!
     
  7. Petter Forss
    Petter Forss avatar
    20 posts
    Member since:
    Oct 2009

    Posted 06 Feb 2015 in reply to Georgi Krustev Link to this post

    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.
  8. Jan
    Jan avatar
    1 posts
    Member since:
    Dec 2015

    Posted 24 Aug in reply to Georgi Krustev Link to this post

    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.

     

  9. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3707 posts

    Posted 26 Aug Link to this post

    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.
     
Back to Top
Kendo UI is VS 2017 Ready