Back to Devexpress

SchedulerControl.InplaceEditorShowing Event

windowsforms-devexpress-dot-xtrascheduler-dot-schedulercontrol-df65bb68.md

latest5.4 KB
Original Source

SchedulerControl.InplaceEditorShowing Event

Occurs every time an in-place editor is invoked in place of the edited appointment. This event is not cancelable. If you want to disable in-place editors for specific appointments, handle the AllowInplaceEditor event (this event fires when the AllowInplaceEditor property equals “Custom”).

Namespace : DevExpress.XtraScheduler

Assembly : DevExpress.XtraScheduler.v25.2.dll

NuGet Package : DevExpress.Win.Scheduler

Declaration

csharp
public event InplaceEditorEventHandler InplaceEditorShowing
vb
Public Event InplaceEditorShowing As InplaceEditorEventHandler

Event Data

The InplaceEditorShowing event's data class is InplaceEditorEventArgs. The following properties provide information specific to this event:

PropertyDescription
AppointmentGets the appointment for which the event was raised. Inherited from AppointmentEventArgs.
InplaceEditorGets or sets the in-place editor which is invoked when an end-user adds a new appointment or edits an existing one “in place”.
InplaceEditorExGets or sets the in-place editor which is invoked when an end-user adds a new appointment or edits an existing one “in place”.
SchedulerInplaceEditorEventArgsGets or sets the object that specifies the scheduler control instance and basic characteristics used to customize the inplace editor appearance and layout.

Remarks

Handle the InplaceEditorShowing event, to show your own in-place editor, or customize the existing editor, displayed when the end-user edits an appointment in-place (also known as “inline editing”). Note that the current in-place editor object can be accessed via the InplaceEditorEventArgs.InplaceEditor property.

Example

View Example

csharp
private void SchedulerControl1_InplaceEditorShowing(object sender, InplaceEditorEventArgs e) {
    e.InplaceEditorEx = new MyInplaceEditorControl(e.SchedulerInplaceEditorEventArgs);
}
vb
Private Sub SchedulerControl1_InplaceEditorShowing(ByVal sender As Object, ByVal e As InplaceEditorEventArgs)
    e.InplaceEditorEx = New MyInplaceEditorControl(e.SchedulerInplaceEditorEventArgs)
End Sub

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the InplaceEditorShowing event.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

how-to-implement-a-custom-inplace-editor-for-appointments-e4826/CS/SchedulerInplaceEditorExample/Form1.cs#L30

csharp
this.schedulerControl1.InplaceEditorShowing += SchedulerControl1_InplaceEditorShowing;
}

how-to-implement-a-custom-inplace-editor-for-appointments-e4826/VB/SchedulerInplaceEditorExample/Form1.vb#L32

vb
AddHandler Me.schedulerControl1.InplaceEditorShowing, AddressOf SchedulerControl1_InplaceEditorShowing
End Sub

See Also

EditAppointmentFormShowing

SchedulerOptionsCustomization.AllowInplaceEditor

SchedulerControl.AllowInplaceEditor

SchedulerControl Class

SchedulerControl Members

DevExpress.XtraScheduler Namespace