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

Read-only for just part of calendar??

1 Answer 51 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Ana
Top achievements
Rank 1
Ana asked on 02 Oct 2008, 08:44 AM
Hi! I would like to disable all actions for some of the appointments, and enable them for others in the same calendar. I think of moving, deleting, clicking,..(everything). Some of the appointments should be read only, and some not. How to do that?
Thanks a lot, Ana

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 02 Oct 2008, 12:09 PM
Hello Ana,

In AppointmentDataBound or AppointmentCreated, set the the AllowEdit or/and AllowDelete properties of the appointment. For example:

protected void RadScheduler1_AppointmentCreated(object sender, Telerik.Web.UI.AppointmentCreatedEventArgs e)  
    {     
        if([MyCondition])  
        {  
            e.Appointment.AllowEdit = false;  
            e.Appointment.AllowDelete = false;  
        }          
    } 


Best wishes,
Peter
the Telerik team

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