new Button

Posted by: giampy72 on 9 September 2017, 8:30 am EST

  • Posted 9 September 2017, 8:30 am EST

    is it possible add a new button in the appointment form ?
    I need to write a code after select a category but I dont find the method "after select" so I m thinking about a new button to solve the problem.... better than nothing

  • Marked as Answer

    Replied 9 September 2017, 8:30 am EST


    I'm sorry it is not possible to modify the appointment form and add a new button in C1Scheduler at the moment. I'll try and find out if this can be done and will get back to you if I find anything.

    The only possibility right now is to handle the BeforeAppointmentSave event and fetch the category/categories of the appoinment.

    partial void Calendar_Created()
    // Write your code here.

    IContentItemProxy proxy = this.FindControl("C1Scheduler");
    proxy.ControlAvailable += proxy_ControlAvailable;

    void proxy_ControlAvailable(object sender, ControlAvailableEventArgs e)
    var scheduler = e.Control as C1.Silverlight.Schedule.C1Scheduler;
    scheduler.BeforeAppointmentSave += scheduler_BeforeAppointmentSave;

    void scheduler_BeforeAppointmentSave(object sender, C1.Silverlight.Schedule.AppointmentActionEventArgs e)
    var categories = e.Appointment.Categories;

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels