Skip to main content

DxTimeEdit<T>.TimeChanged Event

Fires after a user changes time in the Time Edit.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v23.2.dll

NuGet Package: DevExpress.Blazor


public EventCallback<T> TimeChanged { get; set; }


Type Description

A delegate method that accepts the time value as a parameter.


The TimeChanged event allows you to handle changes to selected time. The code below enables the Update Time button once the Time Edit component’s value is changed.

<DxTimeEdit Time="@Time" 
            TimeChanged="@((TimeSpan newValue) => OnTimeChanged(newValue))">

<button type="button" class="btn btn-primary" disabled="@IsDisabled">Update Time</button>

@code {
    TimeSpan Time = DateTime.Now.TimeOfDay;
    bool IsDisabled = true;

    void OnTimeChanged(TimeSpan newValue) {
        Time = newValue;
        if (newValue != DateTime.Now.TimeOfDay)
            IsDisabled = false;
        else IsDisabled = true;
See Also