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

Automatically create Appointment on Double-Click of timeslot

2 Answers 48 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Andy
Top achievements
Rank 1
Andy asked on 18 Sep 2014, 09:02 PM
I would like to skip the insert form template and automatically create the appointment.  Ideally I would like the double-click of a timeslot to skip the FormCreating and FormCreated events and fire the AppointmentCommand where I could manually set necessary appointment properties to the desired values.  Any ideas how to do this?

2 Answers, 1 is accepted

Sort by
0
Accepted
Plamen
Telerik team
answered on 19 Sep 2014, 08:56 AM
Hi Andy,

You can use FormCreating event of RadScheduler as for example in the code below:
protected void RadScheduler1_FormCreating(object sender, SchedulerFormCreatingEventArgs e)
 {
     RadScheduler scheduler = (RadScheduler)sender;
     e.Cancel = true;
     Appointment newApp = e.Appointment;
     newApp.Subject = "newApp";
     scheduler.InsertAppointment(newApp);
     scheduler.Rebind();
 }

Hope this information will be helpful.


Regards,
Plamen
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Andy
Top achievements
Rank 1
answered on 19 Sep 2014, 01:42 PM
Thanks  the info.  So simple, I forgot that this was the way to do it.
Tags
Scheduler
Asked by
Andy
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Andy
Top achievements
Rank 1
Share this question
or