ASP.NET Scheduler: How To Implement End-User Restrictions

ASP.NET Team Blog
12 May 2010

Check out this 2 step approach to prevent users from editing appointments in the ASPxScheduler:

Step 1: Choose Restriction

First decide which action in the ASPxScheduler you want to prevent. Here’s a list of the available ones:

Step 2: Check User ID

Then just check the User ID of the logged in user in the ‘Allow’ operation. For example, this code below prevents the user “Sam” from dragging appointments to a new date and time:

schedulerControl1.OptionsCustomization.AllowAppointmentDrag = UsedAppointmentType.Custom;
schedulerControl1.AllowAppointmentDrag += new AppointmentOperationEventHandler

// ...

void schedulerControl1_AllowAppointmentDrag(object sender, AppointmentOperationEventArgs e) {
    if (user_id == "Sam") e.Allow = false;

To learn more, check out this code central example:

Example Details: How to prevent a user from scheduling appointments in the past

Free DevExpress Products - Get Your Copy Today

The following free DevExpress product offers remain available. Should you have any questions about the free offers below, please submit a ticket via the DevExpress Support Center at your convenience. We'll be happy to follow-up.
No Comments

Please login or register to post comments.