Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DxScheduler.SelectedAppointmentChanged Event

Fires after the selected appointment is changed.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[Parameter]
public EventCallback<DxSchedulerAppointmentItem> SelectedAppointmentChanged { get; set; }

#Parameters

Type Description
DxSchedulerAppointmentItem

An object that stores the selected appointment.

#Remarks

The SelectedAppointmentChanged event occurs each time a user selects another appointment in the Scheduler.

Note

To select an appointment in code, use the SelectedAppointment property.

The following code uses the SelectedAppointmentChanged event’s argument to access the selected appointment’s Subject.

Razor
<p style="font-size: 18px">Selected appointment: "@SelectedSubject"</p>

<DxScheduler DataStorage="@DataStorage" SelectedAppointmentChanged="(e) => SelectedAppointmentChanged(e)">
    <DxSchedulerWeekView ShowWorkTimeOnly="true" />
</DxScheduler>

@code {
  string SelectedSubject;

  // Create a DxSchedulerDataStorage object

  void SelectedAppointmentChanged(DxSchedulerAppointmentItem e) {
    // Check if a selected appointment exists
    if (e != null) {
      SelectedSubject = e.Subject;
    }
  }
}

Selected appointment changed

See Also