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

When is an All Day Event, not an All Day Event?

5 Answers 119 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Stuart Hemming
Top achievements
Rank 2
Stuart Hemming asked on 20 May 2011, 09:46 AM
When it's on my scheduler page, apparently.

SS1.gif shows an appointment on my scheduler, it appears to start at midnight and be of short duration. It clearlt isn't in the All Day area of the control.

SS2.gif shows the codebehind paused at a breakpoint in the AppointmentDataBound event. You can clearly see that the appointment is setup correctly accoring to this forum thread.

So what am I doing wrong?

--
Stuart

5 Answers, 1 is accepted

Sort by
0
Stuart Hemming
Top achievements
Rank 2
answered on 20 May 2011, 09:51 AM
Here are the images.

--
Stuart
0
Stuart Hemming
Top achievements
Rank 2
answered on 20 May 2011, 09:53 AM
There is definately something not right. The attached show the same event in Week and Month views. The sizing is wrong...

FWIW, it is doing it in both SP1 and SP2.
--
Stuart
0
Peter
Telerik team
answered on 26 May 2011, 09:49 AM
Hello Stuart,

Can you check in AppointmentDataBound if the duration of this event is not 0 hours? An all day event starts at 00:00 and ends on 00:00 the next day. What might be misleading here is that in the advanced form the start and end date appear the same if the all-day checkbox is check. Nevertheless, the end date is the next day. 

In SS2.gif it shows that the start and end time are the same. I am not sure how this could have happened, but you could look in your data source.


Kind regards,
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
Stuart Hemming
Top achievements
Rank 2
answered on 26 May 2011, 09:51 AM
Sorry, that was my point. This happens if the event is zero length. It displays OK in Day and Week view, just not in MonthView.

-- 
Stuart
0
Peter
Telerik team
answered on 27 May 2011, 09:42 AM
 
I am not sure how to replicate this problem. Can you send us a simple working demo?

All the best,
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.

Tags
Scheduler
Asked by
Stuart Hemming
Top achievements
Rank 2
Answers by
Stuart Hemming
Top achievements
Rank 2
Peter
Telerik team
Share this question
or