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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

One click to firing "AppointmentEditorOpening"

Thread ID:

Created:

Updated:

Platform:

Replies:

141057 Nov 20,2018 07:35 PM UTC Nov 21,2018 09:58 AM UTC WPF 3
loading
Tags: SfSchedule
Carlos
Asked On November 20, 2018 07:35 PM UTC

Hello,

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

Thanks in advance Carlos

Vigneshkumar Ramasamy [Syncfusion]
Replied On 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 


Carlos
Replied On November 21, 2018 09:34 AM UTC

Thank you Vigneshkumar R. 

It`s working fine.

Vigneshkumar Ramasamy [Syncfusion]
Replied On 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 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon