We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

One click to firing "AppointmentEditorOpening"

Hello,

How can I use one click instead of two to firing event "AppointmentEditorOpening".

Thanks in advance Carlos

3 Replies

VR Vigneshkumar Ramasamy Syncfusion Team November 21, 2018 06:11 AM UTC

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. 
 
Sample Link: SfSchedule_Editing
 
 
Please let us know if this helpfu. 
 
Regards 
Vigneshkumar R 



CA Carlos November 21, 2018 09:34 AM UTC

Thank you Vigneshkumar R. 

It`s working fine.


VR Vigneshkumar Ramasamy Syncfusion Team November 21, 2018 09:58 AM UTC

Hi Carlos  
 
We glad to know that your requirement has been achieved. Please get in touch if you required further assistance on this. 
   
Regards 
Vigneshkumar R 


Loader.
Live Chat Icon For mobile
Up arrow icon