Hi Carlos
Thanks for contacting Syncfusion support.
We have checked your query with “How can I use one click instead of two to firing event AppointmentEditorOpening “and your requirement can be achieved by using Commands in the schedule control. Please find the below UG document for more details about schedule commands.
In the ScheduleClick event we have used commands to open appointment editor in the single click, so that AppointmentEditorOpening event will trigger on single click. Please find the below code snippet for the same.
private void SfSchedule_ScheduleClick(object sender, Syncfusion.UI.Xaml.Schedule.ScheduleClickEventArgs e)
{
if(e.Appointment == null)
{
ScheduleCommands.AddNewCommand.Execute(this.schedule);
}
else
{
ScheduleCommands.EditCommand.Execute(this.schedule);
}
}
private void schedule_AppointmentEditorOpening(object sender, AppointmentEditorOpeningEventArgs e)
{
} |
We have prepared a sample for the same and please find the sample from the below link.
Please let us know if this helpfu.
Regards
Vigneshkumar R