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

Timeline view & disable delete appointment

2 Answers 61 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
MattL
Top achievements
Rank 1
MattL asked on 07 Jul 2011, 10:53 AM
Populating the timeline view from a Linq datasource and need to disable the deleting of an appointment using the Delete key

The appointments are not added individually so can't see where I would set .AllowDelete = False and implementing e.SuppressKeyPress doesn't seem to have any effect.

Any ideas how I can achieve this.

Thanks


2 Answers, 1 is accepted

Sort by
0
Accepted
Ivan Todorov
Telerik team
answered on 13 Jul 2011, 09:58 AM
Hello Mattl,

Thank you for your question.

In order to prevent deleting of appointments, you should just subscribe to the AppointmentDeleting event and cancel it.

I hope this helps. Feel free to ask if you have any additional questions.

Kind regards,
Ivan Todorov
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
MattL
Top achievements
Rank 1
answered on 13 Jul 2011, 03:27 PM
Perfect, the only thing I hadn't tried it seems.

Private Sub RadScheduler1_AppointmentDeleting(sender As Object, e As Telerik.WinControls.UI.SchedulerAppointmentCancelEventArgs) Handles RadScheduler1.AppointmentDeleting
  
e.Cancel = True
  
End Sub

Thanks
Tags
Scheduler and Reminder
Asked by
MattL
Top achievements
Rank 1
Answers by
Ivan Todorov
Telerik team
MattL
Top achievements
Rank 1
Share this question
or