4 Answers, 1 is accepted
0
Accepted
Hello Greg,
You need to set the Start and End dates to specific values. Namely, the start datetime should be 12 am of the current day, and the end datetime should be 12 am the day after. For example:
All the best,
Peter
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
You need to set the Start and End dates to specific values. Namely, the start datetime should be 12 am of the current day, and the end datetime should be 12 am the day after. For example:
| protected void Page_Load(object sender, EventArgs e) |
| { |
| Appointment allDayAppointment = new Appointment(); |
| allDayAppointment.Subject = "All day appointment for May 15, 2009"; |
| allDayAppointment.Start = new DateTime(2009, 5, 15, 0, 0, 0); |
| allDayAppointment.End = new DateTime(2009, 5, 16, 0, 0, 0); |
| RadScheduler1.InsertAppointment(allDayAppointment); |
| } |
All the best,
Peter
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Andrew
Top achievements
Rank 1
answered on 14 May 2009, 03:17 PM
Hi
I have done that , yet the appointment still doesnt show as an all day event. I have added
yet it only shows the appointment in the day view at 1pm even tho the time is 00:00:00 in the record i am inserting fomr both start and end date
Thank
I have done that , yet the appointment still doesnt show as an all day event. I have added
| ShowAllDayRow="true" |
Thank
0
Hello Greg,
Are you setting the TimeZoneOffset property? If yes, you should take this into consideration. For example:
Regards,
Peter
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Are you setting the TimeZoneOffset property? If yes, you should take this into consideration. For example:
| protected void Page_Load(object sender, EventArgs e) |
| { |
| if (!IsPostBack) |
| { |
| Appointment allDayAppointment = new Appointment(); |
| allDayAppointment.Subject = "All day appointment for May 15, 2009"; |
| DateTime allDayStart = new DateTime(2009, 5, 16, 0, 0, 0); |
| DateTime allDayStartAdjusted = allDayStart.Subtract(RadScheduler1.TimeZoneOffset); |
| DateTime allDayEnd = new DateTime(2009, 5, 17, 0, 0, 0); |
| DateTime allDayEndAdjusted = allDayEnd.Subtract(RadScheduler1.TimeZoneOffset); |
| allDayAppointment.Start = allDayStartAdjusted; |
| allDayAppointment.End = allDayEndAdjusted; |
| RadScheduler1.InsertAppointment(allDayAppointment); |
| } |
| } |
Regards,
Peter
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Andrew
Top achievements
Rank 1
answered on 16 May 2009, 02:04 PM
Hi
Setting the end date fixed the problem
Thanks
Setting the end date fixed the problem
Thanks