Back to Devexpress

DxScheduler.AppointmentTooltipShowing Event

blazor-devexpress-dot-blazor-dot-dxscheduler-71698881.md

latest2.3 KB
Original Source

DxScheduler.AppointmentTooltipShowing Event

Fires before an appointment tooltip is shown.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[Parameter]
public EventCallback<SchedulerAppointmentTooltipShowingEventArgs> AppointmentTooltipShowing { get; set; }

Event Data

The AppointmentTooltipShowing event's data class is SchedulerAppointmentTooltipShowingEventArgs. 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 close the appointment tooltip. The following code snippet cancels displaying a tooltip for all-day appointments.

razor
<DxScheduler StartDate="@DateTime.Today"
             DataStorage="@DataStorage"
             AppointmentTooltipShowing="OnAppointmentTooltipShowing">
    ...
</DxScheduler>

@code {
    ...

    void OnAppointmentTooltipShowing(SchedulerAppointmentOperationEventArgs args) {
        if (args.Appointment.AllDay == true) {
            args.Cancel = true;
        }
    }
}

See Also

DxScheduler Class

DxScheduler Members

DevExpress.Blazor Namespace