Thank you for writing.
You can prevent all day appointments from being created by subscribing to the CollectionChanged
event of the Appointments
collection of the RadScheduler
.scheduler.Appointments.CollectionChanging += Appointments_CollectionChanging;
The event handler looks like this:
sender, NotifyCollectionChangingEventArgs e)
(e.Action == NotifyCollectionChangedAction.Add && e.NewItems.Count > 0)
Appointment newApp = e.NewItems
The method for checking if the given appointment is all day event is this:
((app.Start.Minute == 0 && app.Start.Hour == 0 && app.Start.Second == 0) &&
(app.End.Minute == 59 && app.End.Hour == 23 && app.End.Second == 59))
I hope this helps. For any further questions, do not hesitate to ask.
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>