Skip to main content

DxCalendar<T>.SelectedDateChanged Event

Fires after the selected date is changed.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

[Parameter]
public EventCallback<T> SelectedDateChanged { get; set; }

Parameters

Type Description
T

The data type.

Remarks

The SelectedDateChanged event fires each time the SelectedDate property value changes.

<DxCalendar SelectedDate="@SelectedDate"
            SelectedDateChanged="@((DateTime newValue) => OnSelectedDateChanged(newValue))" />

@code{
    DateTime SelectedDate { get; set; } = DateTime.Now;

    void OnSelectedDateChanged(DateTime selectedDate) {
        SelectedDate = selectedDate;
    }
}
See Also