Automatically create Appointment on Double-Click of timeslot

3 posts, 1 answers
  1. Andy
    Andy avatar
    27 posts
    Member since:
    Nov 2010

    Posted 18 Sep 2014 Link to this post

    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. Answer
    Plamen
    Admin
    Plamen avatar
    2730 posts

    Posted 19 Sep 2014 Link to this post

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Andy
    Andy avatar
    27 posts
    Member since:
    Nov 2010

    Posted 19 Sep 2014 in reply to Plamen Link to this post

    Thanks  the info.  So simple, I forgot that this was the way to do it.
Back to Top