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

Multiday event not showing correctly on the last day

2 Answers 44 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Chris Trina
Top achievements
Rank 1
Chris Trina asked on 08 Jan 2011, 09:58 PM
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 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 10 Jan 2011, 02:53 PM
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.
0
Chris Trina
Top achievements
Rank 1
answered on 10 Jan 2011, 05:40 PM
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
Tags
Scheduler
Asked by
Chris Trina
Top achievements
Rank 1
Answers by
Peter
Telerik team
Chris Trina
Top achievements
Rank 1
Share this question
or