ISchedulerInplaceEditorEx.RollbackChanges Event
Raise this event to cancel changes and replace the modified value with the former value (a value before modification).
Namespace: DevExpress.XtraScheduler
Assembly: DevExpress.XtraScheduler.v19.2.Core.dll
Declaration
Event Data
The RollbackChanges event's data class is EventArgs.
Remarks
This example demonstrates how to change default keys used to close an appointment in-place editor. Create a custom in-place editor and override its TextBox_KeyDown method. This sample code specifies that the Ctrl+S shortcut saves changes and closes the editor, while the Ctrl+Z shortcut discards changes and closes the editor.
Note
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-close-an-active-in-place-editor-via-a-custom-shortcut-e5189
private void schedulerControl_InplaceEditorShowing(object sender, DevExpress.XtraScheduler.InplaceEditorEventArgs e)
{
e.InplaceEditorEx = new MyInplaceEditor(e.SchedulerInplaceEditorEventArgs, e.Appointment);
}