ScheduleView Problems Displaying Appointments/Events with No Duration

4 posts, 0 answers
  1. Paul
    Paul avatar
    13 posts
    Member since:
    Nov 2010

    Posted 11 Apr 2012 Link to this post

    Version = Using RadControls for Silverlight Q2 2011 SP1

    We're using the ScheduleView to view/edit appointments and events that have been created in another system. 

    We need the ability to display appointments/events with no duration (ie. the start and end datetimes are equal). If the event is "All Day", the Time portion of the Start and End Datetimes will be 12:00AM (because that is the way the other system saves them).

    Example Event
    Start Time = "04/11/2012 12:00 AM"
    End Time = "04/11/2012 12:00 AM"
    All Day Event = Checked

    Example Appointment
    Start Time = "4/11/2012 3:00 PM"
    End Time = "4/11/2012 3:00 PM"
    All Day Event = Unchecked

    Setting "EnableSmallAppointmentRendering=true" allows appointments with no duration to be displayed.
    However, here are the problems we've encountered:
    1. If the user edits the Example Appointment (above) and clicks the "All Day" checkbox then the event disappears from the Day and Week views. It'll only display on the Month view.
    2. The Example Event (above) will not display on any of the 3 views (Day, Week, Month) b/c the Time portion = "12:00 AM".
    3. Events (designated as "All Day") use the previously entered Time to display in the ScheduleView. Since the time is not valid/displayed for "All Day" events, why would the old/hidden time be considered when displaying the event?
    4. If "EnableSmallAppointmentRendering=true", "All Day" Events with no duration will NOT display on the Day and Week views.

    Thoughts? Fixes?


     
    Here are steps to demonstrate all of these problems using the Telerik "ScheduleViewConfigurator" demo:
    • Choose "Day" view
    • Check "Show all day area"
    • Check "Enable small appointments rendering"
    • Enter a new Appointment for 3AM. 
    Subj = "Test 3AM"
    Start Time = "04/11/2012 03:00"
    End Time = "04/11/2012 03:00"
    All Day Event = Checked

    ** Bad - Notice the 3AM event is NOT displayed on the Day view ** 

    • Enter a new Appointment for 6AM. 
    Subj = "Test 6AM"
    Start Time = "04/11/2012 06:00"
    End Time = "04/11/2012 06:00"
    All Day Event = Unchecked

    ** Good - Notice the 6AM event is displayed on the Day view **

    • Uncheck "Enable small appointments rendering"
    ** Good - Notice the 3AM event is displayed on the Day view **
    ** Bad - Notice the 6AM Appointment is NOT displayed on the Day view **

    • Choose "Week" view
    • Check "Show all day area"

    ** Good - Notice the 3AM event is displayed on the Week view **
    ** Bad - Notice the 6AM Appointment is NOT displayed on the Week view **

    • Choose "Month" view

    ** Good - Notice the 3AM event is displayed on the Month view **
    ** Good - Notice the 6AM Appointment is displayed on the Month view **

    • Edit the "Test 6AM" Appointment
    • Change Start Time = "04/11/2012 00:00" (12:00 AM)
    • Change End Time = "04/11/2012 00:00" (12:00 AM)

    ** Bad - Notice the 6AM Appointment is gone... it is NOT displayed on any views **

    • Edit the "Test 3AM" Event
    • Uncheck "All Day Event"
    • Change Start Time = "04/11/2012 00:00" (12:00 AM)
    • Change End Time = "04/11/2012 00:00" (12:00 AM)
    • Check "All Day Event"

    ** Bad - Notice the 3AM Event is gone... it is NOT displayed on any views **

    • Choose "Day" view
    • Toggle "Enable small appointments rendering"
    ** Bad - Notice the 3AM Event is NOT displayed **
    ** Bad - Notice the 6AM Appointment is NOT displayed **
  2. Paul
    Paul avatar
    13 posts
    Member since:
    Nov 2010

    Posted 13 Apr 2012 Link to this post

    I figured it might be easier to follow the 4 problems in the Telerik demo with a video... 

       http://www.youtube.com/watch?v=kOAxLhCakEY&feature=youtu.be 

    Hope this helps. 
    Thanks
  3. DevCraft banner
  4. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 17 Apr 2012 Link to this post

    Hi Daniel,

    Thank you for sending the detailed report and preparing the video.

    I've managed to reproduce the first and second issues (the last is the same as the first). I've logged them in our public issue tracking system, you can check the PITS item here.  We cannot commit to a certain timeframe for fixing them. However, currently we're working on improving the AllDayArea, so most probably they will be fixed for the Q2 release.

    As to the third issue  - we replicated the described behavior when AllDayArea is disabled. In this case the appointment with duration 0 is displayed at the set time even if its IsAllDayEvent is checked. Actually this is the expected behavior.

    I've updated your points as a token of gratitude for your involvement.

    Kind regards,
    Yana
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  5. Paul
    Paul avatar
    13 posts
    Member since:
    Nov 2010

    Posted 17 Apr 2012 Link to this post

    Sounds good. Thanks for the update Yana.

    #3 is fine as-is. I didn't realize that was expected behavior.

    As a workaround for #1 & #2 (and #4), I added a new custom property called DueDte. This holds the Date and Time for the 0 duration event. Behind the scenes, I set:
       Start=DueDte
       End=DueDte.AddMinutes(30)

    I hide the "Start" and "End" values on my custom modal and only display the DueDte. The "Start" and "End" values are used to display the event on the calendar. Setting the "End" out 30 mins gives it the illusion of having a duration w/o having to set "EnableSmallAppointmentRendering=true".

    That seems to have solved the specific problems I was having.
Back to Top