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

How to delete a selected appointment form radscheduler problematically

3 Answers 312 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Ananthan
Top achievements
Rank 1
Ananthan asked on 15 Apr 2013, 04:30 PM
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

3 Answers, 1 is accepted

Sort by
0
Accepted
Stefan
Telerik team
answered on 18 Apr 2013, 02:08 PM
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.
0
Ufficio Acquisti
Top achievements
Rank 1
answered on 18 Oct 2018, 12:16 PM

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

0
Dimitar
Telerik team
answered on 22 Oct 2018, 08:49 AM
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.
Tags
Scheduler and Reminder
Asked by
Ananthan
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Ufficio Acquisti
Top achievements
Rank 1
Dimitar
Telerik team
Share this question
or