Multiday event not showing correctly on the last day

3 posts, 0 answers
  1. Chris Trina
    Chris Trina avatar
    87 posts
    Member since:
    Mar 2006

    Posted 08 Jan 2011 Link to this post

    I have a multiday event, start date 1/3/11 00:00:00, end date 1/5/11 23:59:59, below is the date logic for inserting it

    odr(

     

    "StartDate") = CDate(StartDate.ToShortDateString & " 00:00:00")

     

    odr(

     

    "EndDate") = CDate(EndDate.ToShortDateString & " 23:59:59")

     


    The event shows fine on the 3rd and 4th, but on the 5th it shows up in the day area of the week view instead of the all day event area.  This happens to all of my events.  I have attached an image to show the issue.  I'm sure it is something I'm missing regarding setting up the event, but any help would be appreciated.

    Thanks
  2. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 10 Jan 2011 Link to this post

    Hi Chris Trina,

    This is expected because your end time is 23:59:59. If you need the appointment to show entirely in the all day row, you should make the end time 00:00 the next day.


    Best wishes,
    Peter
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  3. Chris Trina
    Chris Trina avatar
    87 posts
    Member since:
    Mar 2006

    Posted 10 Jan 2011 Link to this post

    Thanks Peter.  

    I thought I had read somewhere that the end time should be 23:59:59, but adding a day and setting the end time to 00:00:00 does the trick.

    Thanks again

    Chris
Back to Top