How to: Prevent End-Users from Editing Appointments
2 min to read
In some real-life applications it might be necessary to prevent end-users from editing (copying, deleting, dragging, etc.) the appointments shown within the SchedulerControl. For instance, it's necessary to show all the appointments to end-users as read-only.
To do this, access the customization settings via the SchedulerControl.OptionsCustomization property to implement end-user restrictions in your scheduling application. The following restrictions are possible in the ASPxScheduler:
If you set one of the OptionsCustomization.Allow* properties to UsedAppointmentType.Custom, a related Allow* event will fire, in which you can decide how to handle a particular case. For example, to prevent user Sam from dragging appointments, you can use the following code:
Private ASPxScheduler1.OptionsCustomization.AllowAppointmentDrag = _
Private ASPxScheduler1.AllowAppointmentDrag += _
Private Sub ASPxScheduler1_AllowAppointmentDrag(ByVal sender As Object, _
ByVal e As AppointmentOperationEventArgs)
If user_id = "Sam" Then
e.Allow = False
Was this page helpful?
Thanks for your feedback! Any other suggestions? Tell us here.