|
Article relates to
|
RadScheduler
|
|
Created by
|
Nikolay Tsenkov
|
|
Last modified
|
03.04.2011
|
|
Last modified by
|
Nikolay Tsenkov
|
DESCRIPTION
MS Outlook doesn't allow scheduling of appointments whose occurrences are overlapping. For example - the validation will not pass if you try to schedule an appointment with duration of 2 hours, which occurs every 1 hour. At the same time RadScheduler, having advanced Recurrence Editor on-board, enables users to schedule such (and a lot more complex as recurrence pattern) appointments. Although this is nice-to-have kind of feature, some times one should be able to restrict the user group of his/her project (at least because most people are familiar with Outlook) and to additionally validate for this and other custom criteria.
The problem that this article is meant to solve is - how to implement such a validation on the recurrence rule, once it's needed.
SOLUTION
C#
One can handle the AppointmentInsert event with the following handler:
This same handler should be used for AppointmentUpdate event, too.
And the validation method:
VB
One can handle the AppointmentInsert event with the following handler:
This same handler should be used for AppointmentUpdate event, too.
And the validation function:
Please
Sign In
to rate this article.