Hi Antonio,
Thanks for using Syncfusion products.
The reported scenario with “Creating, editing of appointments by custom form” can be achieved by handling the ShowingAppointmentForm event and custom form can be shown in that event. Here we have provided a sample which shows the custom appointment form which can be used to add the appointment in the Schedule grid. Please refer the below code snippet and refer the attached sample,
Code snippet
AppointmentForm form;
void scheduleControl1_ShowingAppointmentForm(object sender, ShowingAppointFormEventArgs e)
{
e.Cancel = true;
form.ShowDialog();
}
//Appointments add in button click
void ok_Click(object sender, System.EventArgs e)
{
IScheduleAppointment item = provider.NewScheduleAppointment();
if (item != null)
{
item.AllDay = true;
item.StartTime = this.StartDateDateTimePickerAdv.Value;
item.EndTime = this.EndDateDateTimePickerAdv.Value;
item.Subject = this.SubjectTextBoxExt.Text;
//Used to add color for appointments
item.LabelValue = this.comboBox1.SelectedIndex;
provider.AddItem(item);
}
this.schedulegrid.DataSource = provider;
this.schedulegrid.GetScheduleHost().SetDataToDayPanels();
this.Close();
}
Regards,
Mohanraj G.