Back to Devexpress

DxScheduler.AppointmentTooltipClosing Event

blazor-devexpress-dot-blazor-dot-dxscheduler-b5caf48b.md

latest2.1 KB
Original Source

DxScheduler.AppointmentTooltipClosing Event

Fires before an appointment tooltip is closed.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[Parameter]
public EventCallback<SchedulerAppointmentTooltipClosingEventArgs> AppointmentTooltipClosing { get; set; }

Event Data

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

PropertyDescription
AppointmentSpecifies the target appointment. Inherited from SchedulerAppointmentOperationEventArgs.
CancelGets or sets a value indicating whether the event should be canceled. Inherited from CancelEventArgs.

Remarks

You can set the event argument’s Cancel property to true to keep the appointment tooltip open.

razor
<DxScheduler StartDate="@DateTime.Today"
             DataStorage="@DataStorage"
             AppointmentTooltipClosing="OnAppointmentTooltipClosing">
    ...
</DxScheduler>

@code {
    ...

    void AppointmentTooltipClosing(SchedulerAppointmentOperationEventArgs args) {
        if (your custom logic) {
            args.Cancel = true;
        }
    }
}

See Also

DxScheduler Class

DxScheduler Members

DevExpress.Blazor Namespace