Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
315
Pressing Escape in Edit mode
posted

Hi,

We use: 'BeforeAppointmentEdited' and 'AfterAppointmentEdited' events of the scheduler, to create and edit our Appointments.

Now when in the 'BeforeAppointmentEdited' event handler, i type a subject in the Appointment slot, then pressing Escape, the subject gets deleted and 'AfterAppointmentEdited' does not fire. I need to have a control over this. Is there a way by which i can listen to the EditCancelled event of the scheduler so that i can do something there.

 

Regards,

Hemesh

 

  • 69832
    Suggested Answer
    Offline posted

    I believe you can assign an Infragistics.Win.EditorWithText embeddable editor to the control's AppoitmentEditor property, and handle that editor's BeforeExitEditMode event. This will give you a notification right before the edit mode session ends; in the scenario you describe here, the 'ApplyChanges' property of the event arguments will return false.