Timeline view & disable delete appointment

3 posts, 1 answers
  1. MattL
    MattL avatar
    7 posts
    Member since:
    May 2007

    Posted 07 Jul 2011 Link to this post

    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. Answer
    Ivan Todorov
    Admin
    Ivan Todorov avatar
    688 posts

    Posted 13 Jul 2011 Link to this post

    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!

  3. UI for WinForms is Visual Studio 2017 Ready
  4. MattL
    MattL avatar
    7 posts
    Member since:
    May 2007

    Posted 13 Jul 2011 Link to this post

    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
Back to Top