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

[Solved] Disable/Enable editing and deleting for some appointments

2 Answers 126 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Emilie Lessard
Top achievements
Rank 1
Emilie Lessard asked on 23 Nov 2009, 06:42 PM
Hi!  I have some troubles finding a solution to disable deleting and editing for SOME appointements.
So far, I've only seen examples for disabling this for ALL of the appointements.
I tried setting "AllowEdit" to false but this doesn't seem to be it.
The javascript code for OnAppointmentEditing doesn't allow me to do server-side logic so that didn't help much.
Thanks in advance!

2 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 24 Nov 2009, 02:56 PM
Hi Emilie,

You can handle AppointmentDataBound to achieve this:

protected void RadScheduler1_AppointmentDataBound(object sender, SchedulerEventArgs e)
   {
       if ([My custom condition])
       {
           e.Appointment.AllowDelete = false;
           e.Appointment.AllowEdit = false;
       }
   }


All the best,
Peter
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Emilie Lessard
Top achievements
Rank 1
answered on 24 Nov 2009, 04:53 PM
Ahhh I see... I was using those properties elsewhere... that's why it didn't work...
Makes a lot of sense!
Thanks!
Tags
Scheduler
Asked by
Emilie Lessard
Top achievements
Rank 1
Answers by
Peter
Telerik team
Emilie Lessard
Top achievements
Rank 1
Share this question
or