This is a migrated thread and some comments may be shown as answers.

Making some appointments non-editable

1 Answer 21 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 18 Sep 2008, 05:33 PM
How do I make some appointments editable but other non-editable? I am building an application where registered users can schedule and edit their own appointments but cannot change others appointments which will just be shown as "Not Available".

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 19 Sep 2008, 09:08 AM
Hello John,

Please, try the following:
protected void RadScheduler1_AppointmentDataBound(object sender, SchedulerEventArgs e)  
    {  
        //Based on your condition you can set the AllowEdit property. For example:  
        if (e.Appointment.Subject != "My Appointment")  
        {  
            e.Appointment.Subject = "Not Available";  
            e.Appointment.AllowEdit = false;  
            e.Appointment.AllowDelete = false;  
            e.Appointment.CssClass = "MyCustomDisabledStyle";  
        }  
    } 



All the best,
Peter
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Scheduler
Asked by
John
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or