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

delete appointment from serverside event

3 Answers 108 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Hrushikesh Mokashi
Top achievements
Rank 1
Hrushikesh Mokashi asked on 20 Oct 2008, 01:48 PM
Hi All,

I am using radScheduler

How to delete appointment from serverside event 'RadScheduler1_AppointmentDelete' of Radscheduler.

Protected Sub RadScheduler1_AppointmentDelete(ByVal sender As Object, ByVal e As Telerik.Web.UI.SchedulerCancelEventArgs) Handles radSchedulCalender.AppointmentDelete


 End Sub

Thanks

3 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 20 Oct 2008, 02:04 PM
Hi Hrushikesh,

If this event has occured, this means that the appointment is about to be deleted. You don't have to take any explicit action. Just make sure you don't cancel the event with e.Cancel = true.


Best wishes,
Peter
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Hrushikesh Mokashi
Top achievements
Rank 1
answered on 20 Oct 2008, 02:31 PM
Hi ,

I am not setting
e.cance=true;
still it not working.

I am not binding any data on design time.

I am binding data to radscheduler in serverside databind event.

Thanks
0
Peter
Telerik team
answered on 20 Oct 2008, 02:45 PM
Hello Hrushikesh,

In this case, please see the Binding To Generic List example. The code for deleting an appointment is as follows:

protected void RadScheduler1_AppointmentDelete(object sender, SchedulerCancelEventArgs e)  
        {  
            Appointments.Remove(FindById(e.Appointment.ID));  
        }  
 



Kind regards,
Peter
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Scheduler
Asked by
Hrushikesh Mokashi
Top achievements
Rank 1
Answers by
Peter
Telerik team
Hrushikesh Mokashi
Top achievements
Rank 1
Share this question
or