How to delete a selected appointment form radscheduler problematically

4 posts, 1 answers
  1. Ananthan
    Ananthan avatar
    8 posts
    Member since:
    Mar 2013

    Posted 15 Apr 2013 Link to this post

    Hi,
    How to delete a selected appointment form radscheduler problematically
    I want to delete a selected appointment by clicking a button.so i want code to delete the selected appointment
  2. Answer
    Stefan
    Admin
    Stefan avatar
    2908 posts

    Posted 18 Apr 2013 Link to this post

    Hi Ananthan,

    Thank you for writing

    Here is how you can delete the selected appointment in RadScheduler:
    void radButton1_Click(object sender, EventArgs e)
    {
        AppointmentElement appointmentElement = SchedulerUIHelper.GetSelectedAppointment(radScheduler1);
        Appointment appointment = appointmentElement.Appointment as Appointment;
        radScheduler1.Appointments.Remove(appointment);
    }

    I hope this helps.
     

    Greetings,
    Stefan
    the Telerik team
    WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
  3. Mara
    Mara avatar
    6 posts
    Member since:
    Aug 2012

    Posted 18 Oct 2018 Link to this post

    Hi, 

    how can I achieve the same result in a more recent release of telerik controls? I'm using this version: 2017.2.613 and SchedulerUIHelper.GetSelectedAppointment method is now obsolete.

    Thanks in advance

  4. Dimitar
    Admin
    Dimitar avatar
    2737 posts

    Posted 22 Oct 2018 Link to this post

    Hi Mara,

    Now you can use the following property:
    radScheduler1.Appointments.Remove(radScheduler1.SelectionBehavior.SelectedAppointment);

    More information is available here: Scheduler Selection.

    I hope this will be useful. Let me know if you have additional questions.

    Regards,
    Dimitar
    Progress Telerik
    Get quickly onboard and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top